/external/compiler-rt/test/ubsan/TestCases/Misc/ |
coverage-levels.cc | 7 // RUN: %clangxx -fsanitize=shift -DGOOD_SHIFT=1 -O1 -fsanitize-coverage=func %s -o %t 16 // RUN: %clangxx -fsanitize=shift -O1 -fsanitize-coverage=func %s -o %t 18 // RUN: %clangxx -fsanitize=shift -O1 -fsanitize-coverage=bb %s -o %t 20 // RUN: %clangxx -fsanitize=shift -O1 -fsanitize-coverage=edge %s -o %t 28 int shift = argc * 32; local 30 shift = 3; 32 if ((argc << shift) == 16) // False. 37 // CHECK_WARN: shift exponent 32 is too large
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/elf/ |
symtab.s | 4 .set shift, 32 5 .set shift, shift - 1
|
/external/syslinux/com32/lib/ |
suffix_number.c | 43 int shift; local 48 shift = 10; 51 shift = 20; 54 shift = 30; 57 shift = 40; 60 shift = 50; 63 shift = 60; 66 shift = 0; 69 v <<= shift; local
|
/external/libunwind/src/mi/ |
_ReadSLEB.c | 6 unsigned shift = 0; local 13 result |= (byte & 0x7f) << shift; 14 shift += 7; 19 if (shift < 8 * sizeof (unw_word_t) && (byte & 0x40) != 0) 21 result |= ((unw_word_t) -1) << shift;
|
_ReadULEB.c | 6 unsigned shift = 0; local 13 result |= (byte & 0x7f) << shift; 16 shift += 7;
|
/system/netd/libnetdutils/include/netdutils/ |
Math.h | 27 inline constexpr const T mask(const int shift) { 28 return (1 << shift) - 1; 31 // Align x up to the nearest integer multiple of 2^shift 33 inline constexpr const T align(const T& x, const int shift) { 34 return (x + mask<T>(shift)) & ~mask<T>(shift);
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/arm/ |
shift-bad.l | 1 .*shift-bad.s: Assembler messages: 2 .*shift-bad.s:2: Error: extraneous shift as part of operand to shift insn -- `asr r0,r1,r2,ror#5' 3 .*shift-bad.s:3: Error: extraneous shift as part of operand to shift insn -- `ror r0,r1,r2,lsl r3' 4 .*shift-bad.s:7: Error: extraneous shift as part of operand to shift insn -- `ror r0,r0,r2,lsl#1 [all...] |
shift-bad.d | 3 # error-output: shift-bad.l
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/aarch64/ |
shifted.s | 23 .macro op3_64 op, shift 24 \op x1, x2, x3, \shift #0 25 \op x1, x2, x3, \shift #1 26 \op x1, x2, x3, \shift #3 27 \op x1, x2, x3, \shift #7 28 \op x1, x2, x3, \shift #15 29 \op x1, x2, x3, \shift #31 30 \op x1, x2, x3, \shift #63 33 .macro op3_32 op, shift 34 \op w1, w2, w3, \shift # [all...] |
bitfield-bfm.s | 39 // <op> <Wd>, <Wn>, #<shift> 40 .macro bf_32s op, shift 41 \op wzr, w7, \shift 44 // <op> <Xd>, <Xn>, #<shift> 45 .macro bf_64s op, shift 46 \op xzr, x7, \shift 58 // shift right -> bfm 59 .macro sr2bfm signed, reg, shift, imms 60 op_bfm signed=\signed, reg=\reg, immr=\shift, imms=\imms 63 // shift left -> bf [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/hppa/parse/ |
regpopbug.s | 4 shift: .reg %sar label 6 shift2: .reg shift 9 yabba: .equ r0 + shift
|
/external/aac/libFDK/src/arm/ |
scale_arm.cpp | 113 /* It performs a fMultDiv2 and increments shift by 1 */ 114 int shift = scalefactor + 1; local 117 shift = fixmin_I(shift, (INT)DFRACT_BITS - 1); 119 if (shift >= 0) { 129 tmp0 <<= shift; local 130 tmp1 <<= shift; local 131 tmp2 <<= shift; local 132 tmp3 <<= shift; local 141 tmp0 <<= shift; local 155 tmp0 >>= shift; local 156 tmp1 >>= shift; local 157 tmp2 >>= shift; local 158 tmp3 >>= shift; local 167 tmp0 >>= shift; local [all...] |
/external/libopus/silk/mips/ |
sigproc_fix_mipsr1.h | 42 static inline int silk_LSHIFT_SAT32(int a, int shift) 46 r = __builtin_mips_shll_s_w(a, shift); 52 static inline int silk_RSHIFT_ROUND(int a, int shift) 56 r = __builtin_mips_shra_r_w(a, shift);
|
/external/aac/libSBRdec/src/ |
transcendent.h | 146 int shift; local 156 shift = (int)(a_e - b_e); 158 shiftAbs = (shift > 0) ? shift : -shift; 160 shiftedMantissa = (shift > 0) ? (FX_SGL2FX_DBL(b_m) >> shiftAbs) 162 otherMantissa = (shift > 0) ? FX_SGL2FX_DBL(a_m) : FX_SGL2FX_DBL(b_m); 163 *ptrSum_e = (shift > 0) ? a_e : b_e; 166 /* shift by 1 bit to avoid overflow */ 185 int shift; local 235 int preShift, postShift, index, shift; local 291 int preShift, postShift, index, shift; local 365 int shift = result_e - *destScale; local [all...] |
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/score/ |
ls32ls16p.s | 14 .macro tran3216 insn32, insn16, shift 17 \insn32 r3, [r2, 0x4 << \shift] #32b -> 16b 18 \insn16 r3, 0x4 << \shift 20 \insn32 r4, [r2, 0xC << \shift] #32b -> 16b 21 \insn16 r4, 0xC << \shift 23 \insn32 r7, [r2, 0x12 << \shift] #32b -> 16b 24 \insn32 r7, [r2, 0x12 << \shift] #32b -> 16b 26 \insn16 r8, 0x8 << \shift 27 \insn32 r8, [r2, 0x8 << \shift] #32b -> 16b 29 \insn32 r5, [r2, 0x20 << \shift] #No transfor [all...] |
/bionic/linker/ |
linker_sleb128.h | 49 size_t shift = 0; local 57 value |= (static_cast<size_t>(byte & 127) << shift); 58 shift += 7; 61 if (shift < size && (byte & 64)) { 62 value |= -(static_cast<size_t>(1) << shift);
|
/external/fio/lib/ |
ieee754.c | 14 int shift; local 32 shift = 0; 35 shift++; 39 shift--; 47 exp = shift + ((1 << (expbits - 1)) - 1); // shift + bias 56 long long shift; local 70 shift = ((i >> significandbits) & ((1LL << expbits) - 1)) - bias; 71 while (shift > 0) { 73 shift-- [all...] |
/external/libhevc/decoder/ |
ihevcd_itrans_recon_dc.c | 94 WORD32 add, shift; local 102 shift = IT_SHIFT_STAGE_1; 103 add = 1 << (shift - 1); 104 dc_value = CLIP_S16((quant_out * 64 + add) >> shift); 105 shift = IT_SHIFT_STAGE_2; 106 add = 1 << (shift - 1); 107 dc_value = CLIP_S16((dc_value * 64 + add) >> shift); 124 WORD32 add, shift; local 133 shift = IT_SHIFT_STAGE_1; 134 add = 1 << (shift - 1) [all...] |
/external/python/cpython2/Tools/buildbot/ |
test.bat | 10 if "%1"=="-x64" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
11 if "%1"=="-d" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
12 if "%1"=="-O" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
13 if "%1"=="-q" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
14 if "%1"=="+d" (set rt_opts=%rt_opts:-d=%) & shift & goto CheckOpts
15 if "%1"=="+q" (set rt_opts=%rt_opts:-q=%) & shift & goto CheckOpts
16 if NOT "%1"=="" (set regrtest_args=%regrtest_args% %1) & shift & goto CheckOpts
|
/external/python/cpython3/Tools/buildbot/ |
test.bat | 10 if "%1"=="-x64" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
11 if "%1"=="-d" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
12 if "%1"=="-O" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
13 if "%1"=="-q" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
14 if "%1"=="+d" (set rt_opts=%rt_opts:-d=%) & shift & goto CheckOpts
15 if "%1"=="+q" (set rt_opts=%rt_opts:-q=%) & shift & goto CheckOpts
16 if NOT "%1"=="" (set regrtest_args=%regrtest_args% %1) & shift & goto CheckOpts
|
/external/python/cpython2/PC/VS8.0/ |
build.bat | 11 if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts
12 if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts
13 if "%1"=="-r" (set build=/rebuild) & shift & goto CheckOpts
|
/prebuilts/go/darwin-x86/src/cmd/vet/testdata/ |
shift.go | 5 // This file contains tests for the suspicious shift checker. 17 _ = (i8 + 1) << 8 // ERROR ".i8 . 1. .8 bits. too small for shift of 8" 18 _ = i8 << (7 + 1) // ERROR "i8 .8 bits. too small for shift of 8" 19 _ = i8 >> 8 // ERROR "i8 .8 bits. too small for shift of 8" 20 i8 <<= 8 // ERROR "i8 .8 bits. too small for shift of 8" 21 i8 >>= 8 // ERROR "i8 .8 bits. too small for shift of 8" 24 _ = i16 << 16 // ERROR "i16 .16 bits. too small for shift of 16" 25 _ = i16 >> 16 // ERROR "i16 .16 bits. too small for shift of 16" 26 i16 <<= 16 // ERROR "i16 .16 bits. too small for shift of 16" 27 i16 >>= 16 // ERROR "i16 .16 bits. too small for shift of 16 [all...] |
/prebuilts/go/linux-x86/src/cmd/vet/testdata/ |
shift.go | 5 // This file contains tests for the suspicious shift checker. 17 _ = (i8 + 1) << 8 // ERROR ".i8 . 1. .8 bits. too small for shift of 8" 18 _ = i8 << (7 + 1) // ERROR "i8 .8 bits. too small for shift of 8" 19 _ = i8 >> 8 // ERROR "i8 .8 bits. too small for shift of 8" 20 i8 <<= 8 // ERROR "i8 .8 bits. too small for shift of 8" 21 i8 >>= 8 // ERROR "i8 .8 bits. too small for shift of 8" 24 _ = i16 << 16 // ERROR "i16 .16 bits. too small for shift of 16" 25 _ = i16 >> 16 // ERROR "i16 .16 bits. too small for shift of 16" 26 i16 <<= 16 // ERROR "i16 .16 bits. too small for shift of 16" 27 i16 >>= 16 // ERROR "i16 .16 bits. too small for shift of 16 [all...] |
/external/tensorflow/tensorflow/core/lib/random/ |
simple_philox.cc | 33 const int shift = Rand32() % (max_log + 1); local 34 const uint32 mask = shift == 32 ? ~static_cast<uint32>(0) : (1 << shift) - 1;
|
/external/skia/src/core/ |
SkEdge.cpp | 15 the points into FDot6. This is modulated by the shift parameter, which 19 or pt * 256 for antialiasing. This is implemented as 1 << (shift + 6). 22 or pt >> 8 for antialiasing. This is implemented as pt >> (10 - shift). 27 // away data in value, so just perform a modify up-shift 34 int shift) { 39 x0 = SkScalarRoundToFDot6(p0.fX, shift); 40 y0 = SkScalarRoundToFDot6(p0.fY, shift); 41 x1 = SkScalarRoundToFDot6(p1.fX, shift); 42 y1 = SkScalarRoundToFDot6(p1.fY, shift); 44 float scale = float(1 << (shift + 6)) 296 int shift = fCurveShift; local [all...] |