#include "libavutil/common.h"
#include "config.h"
#include "x86/mathops.h"
Go to the source code of this file.
Defines | |
#define | MUL64(a, b) ((int64_t)(a) * (int64_t)(b)) |
#define | MULL(a, b, s) (MUL64(a, b) >> (s)) |
#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 int | MULH (int a, int b) |
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 MUL64 | ( | a, | ||
b | ||||
) | ((int64_t)(a) * (int64_t)(b)) |
#define PACK_2S16 | ( | a, | ||
b | ||||
) | PACK_2U16((a)&0xffff, (b)&0xffff) |
#define PACK_4S8 | ( | a, | ||
b, | ||||
c, | ||||
d | ||||
) | PACK_4U8((a)&255, (b)&255, (c)&255, (d)&255) |
#define PACK_4U8 | ( | a, | ||
b, | ||||
c, | ||||
d | ||||
) | (((d) << 24) | ((c) << 16) | ((b) << 8) | (a)) |
Definition at line 164 of file mathops.h.
Referenced by pred4x4_vertical_vp8_c().
static av_const int sign_extend | ( | int | val, | |
unsigned | bits | |||
) | [inline, static] |
Definition at line 117 of file mathops.h.
Referenced by adpcm_decode_frame(), alac_linear_predictor(), cinaudio_decode_frame(), ff_h263_decode_motion(), ff_h263_encode_motion(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), get_sbits_long(), mpeg1_encode_motion(), mpeg_decode_motion(), predictor_decompress_fir_adapt(), smka_decode_frame(), svq1_decode_motion_vector(), and xan_wc3_decode_frame().
static av_always_inline unsigned UMULH | ( | unsigned | a, | |
unsigned | b | |||
) | [static] |