#include <emmintrin.h>
#include "aom/aom_integer.h"
static inline void load_b_values(const int16_t *zbin_ptr, __m128i *zbin,
const int16_t *round_ptr, __m128i *round,
const int16_t *quant_ptr, __m128i *quant,
const int16_t *dequant_ptr, __m128i *dequant,
const int16_t *shift_ptr, __m128i *shift) { … }
static inline __m128i invert_sign_sse2(__m128i a, __m128i sign) { … }
static inline __m128i invert_sign_32_sse2(__m128i a, __m128i sign) { … }
static inline void calculate_qcoeff(__m128i *coeff, const __m128i round,
const __m128i quant, const __m128i shift) { … }
static inline void calculate_qcoeff_log_scale(__m128i *coeff,
const __m128i round,
const __m128i quant,
const __m128i *shift,
const int *log_scale) { … }
static inline __m128i calculate_dqcoeff(__m128i qcoeff, __m128i dequant) { … }
static inline void calculate_dqcoeff_and_store_log_scale(__m128i qcoeff,
__m128i dequant,
const __m128i zero,
tran_low_t *dqcoeff,
const int *log_scale) { … }
static inline __m128i scan_for_eob(__m128i *coeff0, __m128i *coeff1,
const __m128i zbin_mask0,
const __m128i zbin_mask1,
const int16_t *scan_ptr, const int index,
const __m128i zero) { … }
static inline int16_t accumulate_eob(__m128i eob) { … }
static inline __m128i load_coefficients(const tran_low_t *coeff_ptr) { … }
static inline void store_coefficients(__m128i coeff_vals,
tran_low_t *coeff_ptr) { … }
static inline void update_mask1(__m128i *cmp_mask0, __m128i *cmp_mask1,
const int16_t *iscan_ptr, int *is_found,
__m128i *mask) { … }
static inline void update_mask0(__m128i *qcoeff0, __m128i *qcoeff1,
__m128i *threshold, const int16_t *iscan_ptr,
int *is_found, __m128i *mask) { … }
static inline int calculate_non_zero_count(__m128i mask) { … }