Defines | Functions

libavcodec/x86/mathops.h File Reference

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

Go to the source code of this file.

Defines

#define MULL   MULL
#define MULH   MULH
#define MUL64   MUL64
#define mid_pred   mid_pred
#define COPY3_IF_LT(x, y, a, b, c, d)
#define NEG_SSR32   NEG_SSR32
#define NEG_USR32   NEG_USR32

Functions

static av_always_inline
av_const int 
MULL (int a, int b, unsigned shift)
static av_always_inline
av_const int 
MULH (int a, int b)
static av_always_inline
av_const int64_t 
MUL64 (int a, int b)
static av_const int mid_pred (int a, int b, int c)
static int32_t NEG_SSR32 (int32_t a, int8_t s)
static uint32_t NEG_USR32 (uint32_t a, int8_t s)

Define Documentation

#define COPY3_IF_LT (   x,
  y,
  a,
  b,
  c,
  d 
)
Value:
__asm__ volatile(\
    "cmpl  %0, %3       \n\t"\
    "cmovl %3, %0       \n\t"\
    "cmovl %4, %1       \n\t"\
    "cmovl %5, %2       \n\t"\
    : "+&r" (x), "+&r" (a), "+r" (c)\
    : "r" (y), "r" (b), "r" (d)\
);

Definition at line 91 of file mathops.h.

#define mid_pred   mid_pred

Definition at line 71 of file mathops.h.

#define MUL64   MUL64

Definition at line 55 of file mathops.h.

#define MULH   MULH

Definition at line 43 of file mathops.h.

#define MULL   MULL

Definition at line 30 of file mathops.h.

#define NEG_SSR32   NEG_SSR32

Definition at line 103 of file mathops.h.

#define NEG_USR32   NEG_USR32

Definition at line 112 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 72 of file mathops.h.

static av_always_inline av_const int64_t MUL64 ( int  a,
int  b 
) [static]

Definition at line 56 of file mathops.h.

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

Definition at line 44 of file mathops.h.

static av_always_inline av_const int MULL ( int  a,
int  b,
unsigned  shift 
) [static]

Definition at line 31 of file mathops.h.

static int32_t NEG_SSR32 ( int32_t  a,
int8_t  s 
) [inline, static]

Definition at line 104 of file mathops.h.

static uint32_t NEG_USR32 ( uint32_t  a,
int8_t  s 
) [inline, static]

Definition at line 113 of file mathops.h.