Commit c1b17f3b authored by James Zern's avatar James Zern

inline -> INLINE

inline is undefined in visual studio 2013 for C

Change-Id: I85adb3968e4a98e2d7909cc42e955b1447fcfa26
parent 7cdaa607
......@@ -694,7 +694,7 @@ static const uint16_t div_lut[DIV_LUT_NUM + 1] = {
8240, 8224, 8208, 8192,
};
static inline int16_t saturate_int16(int32_t v) {
static INLINE int16_t saturate_int16(int32_t v) {
if (v > 32767)
return 32767;
else if (v < -32768)
......
......@@ -33,7 +33,7 @@ static __m128i horizontal_sum_epi32(__m128i x) {
return x;
}
static inline float rsqrtf(float x) {
static INLINE float rsqrtf(float x) {
float y;
_mm_store_ss(&y, _mm_rsqrt_ss(_mm_load_ss(&x)));
return y;
......
......@@ -121,9 +121,9 @@ static const int plane_rd_mult[REF_TYPES][PLANE_TYPES] = {
rd_cost1 = RDCOST(rdmult, rddiv, rate1, error1); \
}
static inline int64_t get_token_bit_costs(
unsigned int token_costs[2][COEFF_CONTEXTS][ENTROPY_TOKENS], int skip_eob,
int ctx, int token) {
static INLINE int64_t
get_token_bit_costs(unsigned int token_costs[2][COEFF_CONTEXTS][ENTROPY_TOKENS],
int skip_eob, int ctx, int token) {
#if CONFIG_NEW_TOKENSET
(void)skip_eob;
return token_costs[token == ZERO_TOKEN || token == EOB_TOKEN][ctx][token];
......
......@@ -1145,14 +1145,14 @@ int od_enc_rc_update_state(od_rc_state *rc, int64_t bits, int is_golden_frame,
return dropped;
}
static inline void od_rc_buffer_val(od_rc_state *rc, int64_t val, int bytes) {
static INLINE void od_rc_buffer_val(od_rc_state *rc, int64_t val, int bytes) {
while (bytes-- > 0) {
rc->twopass_buffer[rc->twopass_buffer_bytes++] = (uint8_t)(val & 0xFF);
val >>= 8;
}
}
static inline int64_t od_rc_unbuffer_val(od_rc_state *rc, int bytes) {
static INLINE int64_t od_rc_unbuffer_val(od_rc_state *rc, int bytes) {
int64_t ret = 0;
int shift = 0;
while (bytes-- > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment