libavcodec/mathops.h File Reference

#include "libavutil/common.h"

Go to the source code of this file.


#define MULL(a, b, s)   (((int64_t)(a) * (int64_t)(b)) >> (s))
#define MUL64(a, b)   ((int64_t)(a) * (int64_t)(b))
#define MAC64(d, a, b)   ((d) += MUL64(a, b))
#define MLS64(d, a, b)   ((d) -= MUL64(a, b))
#define MAC16(rt, ra, rb)   rt += (ra) * (rb)
#define MUL16(ra, rb)   ((ra) * (rb))
#define MLS16(rt, ra, rb)   ((rt) -= (ra) * (rb))
#define mid_pred   mid_pred
#define COPY3_IF_LT(x, y, a, b, c, d)
#define NEG_SSR32(a, s)   ((( int32_t)(a))>>(32-(s)))
#define NEG_USR32(a, s)   (((uint32_t)(a))>>(32-(s)))


static av_always_inline int MULH (int a, int b)
static av_always_inline unsigned UMULH (unsigned a, unsigned b)
static av_const int mid_pred (int a, int b, int c)
static av_const int sign_extend (int val, unsigned bits)
static av_const unsigned zero_extend (unsigned val, unsigned bits)

Define Documentation

#define COPY3_IF_LT ( x,


if ((y) < (x)) {\
    (x) = (y);\
    (a) = (b);\
    (c) = (d);\

Definition at line 133 of file mathops.h.

#define MAC16 ( rt,
rb   )     rt += (ra) * (rb)

Definition at line 76 of file mathops.h.

Referenced by idctRowCondDC(), idctSparseCol(), idctSparseColAdd(), and idctSparseColPut().

#define MAC64 ( d,
 )     ((d) += MUL64(a, b))

Definition at line 67 of file mathops.h.

#define mid_pred   mid_pred

#define MLS16 ( rt,
rb   )     ((rt) -= (ra) * (rb))

Definition at line 85 of file mathops.h.

#define MLS64 ( d,
 )     ((d) -= MUL64(a, b))

Definition at line 71 of file mathops.h.

#define MUL16 ( ra,
rb   )     ((ra) * (rb))

Definition at line 81 of file mathops.h.

#define MUL64 ( a,
 )     ((int64_t)(a) * (int64_t)(b))

#define MULL ( a,
 )     (((int64_t)(a) * (int64_t)(b)) >> (s))

Definition at line 44 of file mathops.h.

Referenced by compute_stereo(), decode_init(), imdct36(), and lsp2poly().

#define NEG_SSR32 ( a,
 )     ((( int32_t)(a))>>(32-(s)))

Definition at line 142 of file mathops.h.

#define NEG_USR32 ( a,
 )     (((uint32_t)(a))>>(32-(s)))

Definition at line 146 of file mathops.h.

Referenced by decode_block(), decode_block_progressive(), dv_decode_ac(), and get_xbits().

Function Documentation

static av_const int mid_pred ( int  a,
int  b,
int  c 
) [inline, static]

Definition at line 91 of file mathops.h.

static av_always_inline int MULH ( int  a,
int  b 
) [static]

Definition at line 51 of file mathops.h.

static av_const int sign_extend ( int  val,
unsigned  bits 
) [inline, static]

static av_always_inline unsigned UMULH ( unsigned  a,
unsigned  b 
) [static]

Definition at line 57 of file mathops.h.

Referenced by pRNG().

static av_const unsigned zero_extend ( unsigned  val,
unsigned  bits 
) [inline, static]

Definition at line 126 of file mathops.h.

Generated on Fri Oct 26 02:36:51 2012 for FFmpeg by  doxygen 1.5.8