/external/compiler-rt/lib/builtins/ |
H A D | floatunsidf.c | 36 const int shift = significandBits - exponent; local 37 result = (rep_t)a << shift ^ implicitBit;
|
/external/libhevc/common/x86/ |
H A D | ihevc_platform_macros.h | 59 #define SHR_NEG(val,shift) ((shift>0)?(val>>shift):(val<<(-shift))) 60 #define SHL_NEG(val,shift) ((shift<0)?(val>>(-shift)):(val<<shift))
|
/external/libhevc/common/ |
H A D | ihevc_weighted_pred.c | 62 * dst = ( (src + lvl_shift) * wgt0 + (1 << (shift - 1)) ) >> shift + 86 * @param[in] shift 90 * added before shift and offset 112 WORD32 shift, 125 i4_tmp += 1 << (shift - 1); 126 i4_tmp = (i4_tmp >> shift) + off0; 145 * dst = ( (src + lvl_shift) * wgt0 + (1 << (shift - 1)) ) >> shift + 169 * @param[in] shift 106 ihevc_weighted_pred_uni(WORD16 *pi2_src, UWORD8 *pu1_dst, WORD32 src_strd, WORD32 dst_strd, WORD32 wgt0, WORD32 off0, WORD32 shift, WORD32 lvl_shift, WORD32 ht, WORD32 wd) argument 189 ihevc_weighted_pred_chroma_uni(WORD16 *pi2_src, UWORD8 *pu1_dst, WORD32 src_strd, WORD32 dst_strd, WORD32 wgt0_cb, WORD32 wgt0_cr, WORD32 off0_cb, WORD32 off0_cr, WORD32 shift, WORD32 lvl_shift, WORD32 ht, WORD32 wd) argument 292 ihevc_weighted_pred_bi(WORD16 *pi2_src1, WORD16 *pi2_src2, UWORD8 *pu1_dst, WORD32 src_strd1, WORD32 src_strd2, WORD32 dst_strd, WORD32 wgt0, WORD32 off0, WORD32 wgt1, WORD32 off1, WORD32 shift, WORD32 lvl_shift1, WORD32 lvl_shift2, WORD32 ht, WORD32 wd) argument 393 ihevc_weighted_pred_chroma_bi(WORD16 *pi2_src1, WORD16 *pi2_src2, UWORD8 *pu1_dst, WORD32 src_strd1, WORD32 src_strd2, WORD32 dst_strd, WORD32 wgt0_cb, WORD32 wgt0_cr, WORD32 off0_cb, WORD32 off0_cr, WORD32 wgt1_cb, WORD32 wgt1_cr, WORD32 off1_cb, WORD32 off1_cr, WORD32 shift, WORD32 lvl_shift1, WORD32 lvl_shift2, WORD32 ht, WORD32 wd) argument 502 WORD32 shift; local 585 WORD32 shift; local [all...] |
H A D | ihevc_chroma_iquant_itrans_recon.c | 136 WORD32 shift; local 153 shift = IT_SHIFT_STAGE_1; 154 add = 1 << (shift - 1); 196 CLIP_S16(((e[0] + o[0] + add) >> shift)); 198 CLIP_S16(((e[1] + o[1] + add) >> shift)); 200 CLIP_S16(((e[1] - o[1] + add) >> shift)); 202 CLIP_S16(((e[0] - o[0] + add) >> shift)); 213 shift = IT_SHIFT_STAGE_2; 214 add = 1 << (shift - 1); 235 CLIP_S16(((e[0] + o[0] + add) >> shift)); [all...] |
H A D | ihevc_iquant_itrans_recon.c | 127 WORD32 shift; local 144 shift = IT_SHIFT_STAGE_1; 145 add = 1 << (shift - 1); 195 CLIP_S16((29 * c[0] + 55 * c[1] + c[3] + add) >> shift); 197 CLIP_S16((55 * c[2] - 29 * c[1] + c[3] + add) >> shift); 213 CLIP_S16((74 * (iq_tmp_1 - iq_tmp_2 + iq_tmp_3) + add) >> shift); 215 CLIP_S16((55 * c[0] + 29 * c[2] - c[3] + add) >> shift); 226 shift = IT_SHIFT_STAGE_2; 227 add = 1 << (shift - 1); 240 CLIP_S16((29 * c[0] + 55 * c[1] + c[3] + add) >> shift); 336 WORD32 shift; local [all...] |
/external/qemu/include/qemu/ |
H A D | bitops.h | 189 * @shift: bits to roll 191 static inline uint8_t rol8(uint8_t word, unsigned int shift) argument 193 return (word << shift) | (word >> (8 - shift)); 199 * @shift: bits to roll 201 static inline uint8_t ror8(uint8_t word, unsigned int shift) argument 203 return (word >> shift) | (word << (8 - shift)); 209 * @shift: bits to roll 211 static inline uint16_t rol16(uint16_t word, unsigned int shift) argument 221 ror16(uint16_t word, unsigned int shift) argument 231 rol32(uint32_t word, unsigned int shift) argument 241 ror32(uint32_t word, unsigned int shift) argument 251 rol64(uint64_t word, unsigned int shift) argument 261 ror64(uint64_t word, unsigned int shift) argument [all...] |
/external/chromium_org/third_party/opus/src/silk/ |
H A D | MacroDebug.h | 547 static OPUS_INLINE opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){ 550 ret = a << shift; 551 fail |= shift < 0; 552 fail |= shift >= 8; 553 fail |= (opus_int64)ret != ((opus_int64)a) << shift; 556 fprintf (stderr, "silk_LSHIFT8(%d, %d) in %s: line %d\n", a, shift, file, line); 566 static OPUS_INLINE opus_int16 silk_LSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){ 569 ret = a << shift; 570 fail |= shift < 0; 571 fail |= shift > [all...] |
H A D | SigProc_FIX.h | 171 /* Compute number of bits to right shift the sum of squares of a vector */ 175 opus_int *shift, /* O Number of bits right shift applied to energy */ 347 const opus_int scale, /* I number of bits to shift */ 469 #define silk_LSHIFT8(a, shift) ((opus_int8)((opus_uint8)(a)<<(shift))) /* shift >= 0, shift < 8 */ 470 #define silk_LSHIFT16(a, shift) ((opus_int16)((opus_uint16)(a)<<(shift))) /* shif [all...] |
/external/libopus/silk/ |
H A D | MacroDebug.h | 547 static OPUS_INLINE opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){ 550 ret = a << shift; 551 fail |= shift < 0; 552 fail |= shift >= 8; 553 fail |= (opus_int64)ret != ((opus_int64)a) << shift; 556 fprintf (stderr, "silk_LSHIFT8(%d, %d) in %s: line %d\n", a, shift, file, line); 566 static OPUS_INLINE opus_int16 silk_LSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){ 569 ret = a << shift; 570 fail |= shift < 0; 571 fail |= shift > [all...] |
H A D | SigProc_FIX.h | 171 /* Compute number of bits to right shift the sum of squares of a vector */ 175 opus_int *shift, /* O Number of bits right shift applied to energy */ 347 const opus_int scale, /* I number of bits to shift */ 469 #define silk_LSHIFT8(a, shift) ((opus_int8)((opus_uint8)(a)<<(shift))) /* shift >= 0, shift < 8 */ 470 #define silk_LSHIFT16(a, shift) ((opus_int16)((opus_uint16)(a)<<(shift))) /* shif [all...] |
/external/chromium_org/third_party/opus/src/silk/float/ |
H A D | residual_energy_FLP.c | 101 opus_int shift; local 105 shift = LPC_order + subfr_length; 108 silk_LPC_analysis_filter_FLP( LPC_res, a[ 0 ], x + 0 * shift, 2 * shift, LPC_order ); 109 nrgs[ 0 ] = ( silk_float )( gains[ 0 ] * gains[ 0 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) ); 110 nrgs[ 1 ] = ( silk_float )( gains[ 1 ] * gains[ 1 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_length ) ); 113 silk_LPC_analysis_filter_FLP( LPC_res, a[ 1 ], x + 2 * shift, 2 * shift, LPC_order ); 114 nrgs[ 2 ] = ( silk_float )( gains[ 2 ] * gains[ 2 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) ); 115 nrgs[ 3 ] = ( silk_float )( gains[ 3 ] * gains[ 3 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_lengt [all...] |
/external/libopus/silk/float/ |
H A D | residual_energy_FLP.c | 101 opus_int shift; local 105 shift = LPC_order + subfr_length; 108 silk_LPC_analysis_filter_FLP( LPC_res, a[ 0 ], x + 0 * shift, 2 * shift, LPC_order ); 109 nrgs[ 0 ] = ( silk_float )( gains[ 0 ] * gains[ 0 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) ); 110 nrgs[ 1 ] = ( silk_float )( gains[ 1 ] * gains[ 1 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_length ) ); 113 silk_LPC_analysis_filter_FLP( LPC_res, a[ 1 ], x + 2 * shift, 2 * shift, LPC_order ); 114 nrgs[ 2 ] = ( silk_float )( gains[ 2 ] * gains[ 2 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) ); 115 nrgs[ 3 ] = ( silk_float )( gains[ 3 ] * gains[ 3 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_lengt [all...] |
/external/chromium_org/third_party/opus/src/celt/ |
H A D | fixed_generic.h | 39 /** 16x32 multiplication, followed by a 16-bit shift right. Results fits in 32 bits */ 42 /** 16x32 multiplication, followed by a 16-bit shift right (round-to-nearest). Results fits in 32 bits */ 45 /** 16x32 multiplication, followed by a 15-bit shift right. Results fits in 32 bits */ 48 /** 32x32 multiplication, followed by a 31-bit shift right. Results fits in 32 bits */ 67 /** Arithmetic shift-right of a 16-bit value */ 68 #define SHR16(a,shift) ((a) >> (shift)) 69 /** Arithmetic shift-left of a 16-bit value */ 70 #define SHL16(a,shift) ((opus_int16)((opus_uint16)(a)<<(shift))) [all...] |
/external/libopus/celt/ |
H A D | fixed_generic.h | 39 /** 16x32 multiplication, followed by a 16-bit shift right. Results fits in 32 bits */ 42 /** 16x32 multiplication, followed by a 16-bit shift right (round-to-nearest). Results fits in 32 bits */ 45 /** 16x32 multiplication, followed by a 15-bit shift right. Results fits in 32 bits */ 48 /** 32x32 multiplication, followed by a 31-bit shift right. Results fits in 32 bits */ 67 /** Arithmetic shift-right of a 16-bit value */ 68 #define SHR16(a,shift) ((a) >> (shift)) 69 /** Arithmetic shift-left of a 16-bit value */ 70 #define SHL16(a,shift) ((opus_int16)((opus_uint16)(a)<<(shift))) [all...] |
/external/qemu/target-arm/ |
H A D | op_helper.c | 40 int shift; local 44 for (shift = 0; shift < 32; shift += 8) { 45 index = (ireg >> shift) & 0xff; 48 val |= tmp << shift; 50 val |= def & (0xff << shift); 200 static inline uint32_t do_ssat(CPUARMState *env, int32_t val, int shift) argument 205 top = val >> shift; 206 mask = (1u << shift) 218 do_usat(CPUARMState *env, int32_t val, int shift) argument 234 ssat(CPUARMState *env, uint32_t x, uint32_t shift) argument 240 ssat16(CPUARMState *env, uint32_t x, uint32_t shift) argument 250 usat(CPUARMState *env, uint32_t x, uint32_t shift) argument 256 usat16(CPUARMState *env, uint32_t x, uint32_t shift) argument 378 int shift = i & 0xff; local 386 int shift = i & 0xff; local 394 int shift = i & 0xff; local 402 int shift = i & 0xff; local 418 int shift = i & 0xff; local 434 int shift = i & 0xff; local 447 int shift1, shift; local [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/encoder/ |
H A D | boolhuff.h | 68 register unsigned int shift; local 91 shift = vp8_norm[range]; 93 range <<= shift; local 94 count += shift; 98 int offset = shift - count; 117 shift = count; 122 lowvalue <<= shift; local
|
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/ |
H A D | vp9_writer.h | 38 register unsigned int shift; local 49 shift = vp9_norm[range]; 51 range <<= shift; local 52 count += shift; 55 int offset = shift - count; 70 shift = count; 75 lowvalue <<= shift; local
|
/external/libvpx/libvpx/vp8/encoder/ |
H A D | boolhuff.h | 72 register unsigned int shift; local 95 shift = vp8_norm[range]; 97 range <<= shift; local 98 count += shift; 102 int offset = shift - count; 121 shift = count; 126 lowvalue <<= shift; local
|
/external/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_writer.h | 43 register unsigned int shift; local 54 shift = vp9_norm[range]; 56 range <<= shift; local 57 count += shift; 60 int offset = shift - count; 75 shift = count; 80 lowvalue <<= shift; local
|
/external/skia/src/core/ |
H A D | SkEdge.cpp | 16 the points into FDot6. This is modulated by the shift parameter, which 20 or pt * 256 for antialiasing. This is implemented as 1 << (shift + 6). 23 or pt >> 8 for antialiasing. This is implemented as pt >> (10 - shift). 28 // away data in value, so just perform a modify up-shift 35 int shift) { 39 float scale = float(1 << (shift + 6)); 135 /* We store 1<<shift in a (signed) byte, so its maximum value is 1<<6 == 64. 159 // shift down dist (it is currently in dot6) 165 // each subdivision (shift value) cuts this dist (error) by 1/4 169 int SkQuadraticEdge::setQuadratic(const SkPoint pts[3], int shift) argument 34 setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip, int shift) argument 266 int shift = fCurveShift; local 319 setCubic(const SkPoint pts[4], const SkIRect* clip, int shift) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
H A D | AESEngine.java | 223 private static int shift(int r, int shift) argument 225 return (r >>> shift) | (r << -shift); 256 return f2 ^ f4 ^ f8 ^ shift(f2 ^ f9, 8) ^ shift(f4 ^ f9, 16) ^ shift(f9, 24); 308 temp = subWord(shift(temp, 8)) ^ rcon[(i / KC)-1]; 487 r0 = T0[C0&255] ^ shift(T0[(C1>>8)&255], 24) ^ shift(T [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/decoder/ |
H A D | dboolhuff.c | 43 int shift = VP8_BD_VALUE_SIZE - CHAR_BIT - (count + CHAR_BIT); local 46 int x = (int)(shift + CHAR_BIT - bits_left); 64 while(shift >= loop_end) 67 value |= (VP8_BD_VALUE)*bufptr << shift; 70 shift -= CHAR_BIT;
|
/external/chromium_org/tools/relocation_packer/src/ |
H A D | sleb128.cc | 71 size_t shift = 0; local 77 value |= (static_cast<ELF::Sxword>(byte & 127) << shift); 78 shift += 7; 82 // Sign extend if value is -ve and we did not shift all of it. 83 if (shift < size && (byte & 64)) 84 value |= -(static_cast<ELF::Sxword>(1) << shift);
|
/external/libvpx/libvpx/vp8/decoder/ |
H A D | dboolhuff.c | 42 int shift = VP8_BD_VALUE_SIZE - 8 - (count + 8); local 45 int x = (int)(shift + CHAR_BIT - bits_left); 63 while(shift >= loop_end) 66 value |= (VP8_BD_VALUE)*bufptr << shift; 69 shift -= CHAR_BIT;
|
/external/libvpx/libvpx/vp9/decoder/ |
H A D | vp9_reader.c | 40 int shift = BD_VALUE_SIZE - CHAR_BIT - (count + CHAR_BIT); local 43 const int x = shift + CHAR_BIT - bits_left; 51 while (shift >= loop_end) { 53 value |= (BD_VALUE)*buffer++ << shift; 54 shift -= CHAR_BIT;
|