Defines | Functions

libavcodec/mathops.h File Reference

#include "libavutil/common.h"
#include "config.h"
#include "x86/mathops.h"

Go to the source code of this file.

Defines

#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 PACK_2U8(a, b)   (((b) << 8) | (a))
#define PACK_4U8(a, b, c, d)   (((d) << 24) | ((c) << 16) | ((b) << 8) | (a))
#define PACK_2U16(a, b)   (((b) << 16) | (a))
#define PACK_2S8(a, b)   PACK_2U8((a)&255, (b)&255)
#define PACK_4S8(a, b, c, d)   PACK_4U8((a)&255, (b)&255, (c)&255, (d)&255)
#define PACK_2S16(a, b)   PACK_2U16((a)&0xffff, (b)&0xffff)

Functions

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

Define Documentation

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

Definition at line 74 of file mathops.h.

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

Definition at line 65 of file mathops.h.

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

Definition at line 83 of file mathops.h.

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

Definition at line 69 of file mathops.h.

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

Definition at line 79 of file mathops.h.

#define PACK_2S16 (   a,
  b 
)    PACK_2U16((a)&0xffff, (b)&0xffff)

Definition at line 176 of file mathops.h.

#define PACK_2S8 (   a,
  b 
)    PACK_2U8((a)&255, (b)&255)

Definition at line 170 of file mathops.h.

#define PACK_2U16 (   a,
  b 
)    (((b) << 16) | (a))

Definition at line 165 of file mathops.h.

#define PACK_2U8 (   a,
  b 
)    (((b) << 8) | (a))

Definition at line 159 of file mathops.h.

#define PACK_4S8 (   a,
  b,
  c,
  d 
)    PACK_4U8((a)&255, (b)&255, (c)&255, (d)&255)

Definition at line 173 of file mathops.h.

#define PACK_4U8 (   a,
  b,
  c,
  d 
)    (((d) << 24) | ((c) << 16) | ((b) << 8) | (a))

Definition at line 162 of file mathops.h.

Referenced by pred4x4_vertical_vp8_c().


Function Documentation

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 59 of file mathops.h.

Referenced by pRNG().

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

Definition at line 124 of file mathops.h.