/external/python/cpython3/Lib/test/decimaltestdata/ |
D | dqShift.decTest | 2 -- dqShift.decTest -- shift decQuad coefficient left or right -- 30 dqshi001 shift 0 0 -> 0 31 dqshi002 shift 0 2 -> 0 32 dqshi003 shift 1 2 -> 100 33 dqshi004 shift 1 33 -> 1000000000000000000000000000000000 34 dqshi005 shift 1 34 -> 0 35 dqshi006 shift 1 -1 -> 0 36 dqshi007 shift 0 -2 -> 0 37 dqshi008 shift 1234567890123456789012345678901234 -1 -> 123456789012345678901234567890123 38 dqshi009 shift 1234567890123456789012345678901234 -33 -> 1 [all …]
|
D | ddShift.decTest | 2 -- ddShift.decTest -- shift decDouble coefficient left or right -- 30 ddshi001 shift 0 0 -> 0 31 ddshi002 shift 0 2 -> 0 32 ddshi003 shift 1 2 -> 100 33 ddshi004 shift 1 15 -> 1000000000000000 34 ddshi005 shift 1 16 -> 0 35 ddshi006 shift 1 -1 -> 0 36 ddshi007 shift 0 -2 -> 0 37 ddshi008 shift 1234567890123456 -1 -> 123456789012345 38 ddshi009 shift 1234567890123456 -15 -> 1 [all …]
|
D | shift.decTest | 2 -- shift.decTest -- shift coefficient left or right -- 29 shix001 shift 0 0 -> 0 30 shix002 shift 0 2 -> 0 31 shix003 shift 1 2 -> 100 32 shix004 shift 1 8 -> 100000000 33 shix005 shift 1 9 -> 0 34 shix006 shift 1 -1 -> 0 35 shix007 shift 123456789 -1 -> 12345678 36 shix008 shift 123456789 -8 -> 1 37 shix009 shift 123456789 -9 -> 0 [all …]
|
/external/python/cpython2/Lib/test/decimaltestdata/ |
D | dqShift.decTest | 2 -- dqShift.decTest -- shift decQuad coefficient left or right -- 30 dqshi001 shift 0 0 -> 0 31 dqshi002 shift 0 2 -> 0 32 dqshi003 shift 1 2 -> 100 33 dqshi004 shift 1 33 -> 1000000000000000000000000000000000 34 dqshi005 shift 1 34 -> 0 35 dqshi006 shift 1 -1 -> 0 36 dqshi007 shift 0 -2 -> 0 37 dqshi008 shift 1234567890123456789012345678901234 -1 -> 123456789012345678901234567890123 38 dqshi009 shift 1234567890123456789012345678901234 -33 -> 1 [all …]
|
D | ddShift.decTest | 2 -- ddShift.decTest -- shift decDouble coefficient left or right -- 30 ddshi001 shift 0 0 -> 0 31 ddshi002 shift 0 2 -> 0 32 ddshi003 shift 1 2 -> 100 33 ddshi004 shift 1 15 -> 1000000000000000 34 ddshi005 shift 1 16 -> 0 35 ddshi006 shift 1 -1 -> 0 36 ddshi007 shift 0 -2 -> 0 37 ddshi008 shift 1234567890123456 -1 -> 123456789012345 38 ddshi009 shift 1234567890123456 -15 -> 1 [all …]
|
D | shift.decTest | 2 -- shift.decTest -- shift coefficient left or right -- 29 shix001 shift 0 0 -> 0 30 shix002 shift 0 2 -> 0 31 shix003 shift 1 2 -> 100 32 shix004 shift 1 8 -> 100000000 33 shix005 shift 1 9 -> 0 34 shix006 shift 1 -1 -> 0 35 shix007 shift 123456789 -1 -> 12345678 36 shix008 shift 123456789 -8 -> 1 37 shix009 shift 123456789 -9 -> 0 [all …]
|
/external/llvm-project/compiler-rt/test/ubsan/TestCases/Integer/ |
D | unsigned-shift.cpp | 4 #define shift(val, amount) ({ \ macro 13 shift(0b00000000'00000000'00000000'00000000, 31); in main() 14 shift(0b00000000'00000000'00000000'00000001, 31); in main() 15 …shift(0b00000000'00000000'00000000'00000010, 31); // CHECK: unsigned-shift.cpp:[[@LINE]]:3: runtim… in main() 16 …shift(0b00000000'00000000'00000000'00000100, 31); // CHECK: unsigned-shift.cpp:[[@LINE]]:3: runtim… in main() 17 …shift(0b00000000'00000000'00000000'00001000, 31); // CHECK: unsigned-shift.cpp:[[@LINE]]:3: runtim… in main() 18 …shift(0b00000000'00000000'00000000'00010000, 31); // CHECK: unsigned-shift.cpp:[[@LINE]]:3: runtim… in main() 19 …shift(0b00000000'00000000'00000000'00100000, 31); // CHECK: unsigned-shift.cpp:[[@LINE]]:3: runtim… in main() 20 …shift(0b00000000'00000000'00000000'01000000, 31); // CHECK: unsigned-shift.cpp:[[@LINE]]:3: runtim… in main() 21 …shift(0b00000000'00000000'00000000'10000000, 31); // CHECK: unsigned-shift.cpp:[[@LINE]]:3: runtim… in main() [all …]
|
/external/llvm/test/Analysis/CostModel/X86/ |
D | vshift-lshr-cost.ll | 8 ; Verify the cost of vector logical shift right instructions. 16 ; SSE2: Found an estimated cost of 4 for instruction: %shift 17 ; SSE41: Found an estimated cost of 4 for instruction: %shift 18 ; AVX: Found an estimated cost of 4 for instruction: %shift 19 ; AVX2: Found an estimated cost of 1 for instruction: %shift 20 ; XOPAVX: Found an estimated cost of 2 for instruction: %shift 21 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift 22 %shift = lshr <2 x i64> %a, %b 23 ret <2 x i64> %shift 28 ; SSE2: Found an estimated cost of 8 for instruction: %shift [all …]
|
D | vshift-ashr-cost.ll | 8 ; Verify the cost of vector arithmetic shift right instructions. 16 ; SSE2: Found an estimated cost of 12 for instruction: %shift 17 ; SSE41: Found an estimated cost of 12 for instruction: %shift 18 ; AVX: Found an estimated cost of 12 for instruction: %shift 19 ; AVX2: Found an estimated cost of 4 for instruction: %shift 20 ; XOP: Found an estimated cost of 2 for instruction: %shift 21 %shift = ashr <2 x i64> %a, %b 22 ret <2 x i64> %shift 27 ; SSE2: Found an estimated cost of 24 for instruction: %shift 28 ; SSE41: Found an estimated cost of 24 for instruction: %shift [all …]
|
D | vshift-shl-cost.ll | 8 ; Verify the cost of vector shift left instructions. 17 ; SSE2: Found an estimated cost of 4 for instruction: %shift 18 ; SSE41: Found an estimated cost of 4 for instruction: %shift 19 ; AVX: Found an estimated cost of 4 for instruction: %shift 20 ; AVX2: Found an estimated cost of 1 for instruction: %shift 21 ; XOPAVX: Found an estimated cost of 1 for instruction: %shift 22 ; XOPAVX2: Found an estimated cost of 1 for instruction: %shift 23 %shift = shl <2 x i64> %a, %b 24 ret <2 x i64> %shift 29 ; SSE2: Found an estimated cost of 8 for instruction: %shift [all …]
|
/external/llvm-project/clang/test/CodeGen/X86/ |
D | rot-intrinsics.c | 17 unsigned char test__rolb(unsigned char value, int shift) { in test__rolb() argument 21 return __rolb(value, shift); in test__rolb() 24 unsigned short test__rolw(unsigned short value, int shift) { in test__rolw() argument 28 return __rolw(value, shift); in test__rolw() 31 unsigned int test__rold(unsigned int value, int shift) { in test__rold() argument 35 return __rold(value, shift); in test__rold() 39 unsigned long test__rolq(unsigned long value, int shift) { in test__rolq() argument 43 return __rolq(value, shift); in test__rolq() 47 unsigned char test__rorb(unsigned char value, int shift) { in test__rorb() argument 51 return __rorb(value, shift); in test__rorb() [all …]
|
/external/llvm-project/clang/test/CodeGen/ |
D | ms-intrinsics-rotations.c | 22 unsigned char test_rotl8(unsigned char value, unsigned char shift) { in test_rotl8() argument 23 return _rotl8(value, shift); in test_rotl8() 29 unsigned short test_rotl16(unsigned short value, unsigned char shift) { in test_rotl16() argument 30 return _rotl16(value, shift); in test_rotl16() 36 unsigned int test_rotl(unsigned int value, int shift) { in test_rotl() argument 37 return _rotl(value, shift); in test_rotl() 43 unsigned long test_lrotl(unsigned long value, int shift) { in test_lrotl() argument 44 return _lrotl(value, shift); in test_lrotl() 53 unsigned __int64 test_rotl64(unsigned __int64 value, int shift) { in test_rotl64() argument 54 return _rotl64(value, shift); in test_rotl64() [all …]
|
/external/libchrome/base/ |
D | bits_unittest.cc | 68 for (uint8_t shift = 0; shift <= 7; shift++) { in TEST() local 69 EXPECT_EQ(7u - shift, in TEST() 70 CountLeadingZeroBits(static_cast<uint8_t>(1 << shift))); in TEST() 78 for (uint16_t shift = 0; shift <= 15; shift++) { in TEST() local 79 EXPECT_EQ(15u - shift, in TEST() 80 CountLeadingZeroBits(static_cast<uint16_t>(1 << shift))); in TEST() 88 for (uint32_t shift = 0; shift <= 31; shift++) { in TEST() local 89 EXPECT_EQ(31u - shift, CountLeadingZeroBits(uint32_t{1} << shift)); in TEST() 97 for (uint8_t shift = 0; shift <= 7; shift++) { in TEST() local 98 EXPECT_EQ(shift, CountTrailingZeroBits(static_cast<uint8_t>(1 << shift))); in TEST() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/ |
D | AESEngine.java | 227 private static int shift(int r, int shift) in shift() argument 229 return (r >>> shift) | (r << -shift); in shift() 267 t1 = t0 ^ shift(t0, 8); in inv_mcol() 270 t0 ^= t1 ^ shift(t1, 16); in inv_mcol() 308 int colx = subWord(shift(col3, 8)) ^ rcon[i - 1]; in generateWorkingKey() 332 colx = subWord(shift(col5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 341 colx = subWord(shift(col5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 373 colx = subWord(shift(col7, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 576 …r0 = T0[t0&255] ^ shift(T0[(t1>>8)&255], 24) ^ shift(T0[(t2>>16)&255], 16) ^ shift(T0[(r3>>24)&255… in encryptBlock() 577 …r1 = T0[t1&255] ^ shift(T0[(t2>>8)&255], 24) ^ shift(T0[(r3>>16)&255], 16) ^ shift(T0[(t0>>24)&255… in encryptBlock() [all …]
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/engines/ |
D | AESEngine.java | 227 private static int shift(int r, int shift) in shift() argument 229 return (r >>> shift) | (r << -shift); in shift() 267 t1 = t0 ^ shift(t0, 8); in inv_mcol() 270 t0 ^= t1 ^ shift(t1, 16); in inv_mcol() 308 int colx = subWord(shift(col3, 8)) ^ rcon[i - 1]; in generateWorkingKey() 332 colx = subWord(shift(col5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 341 colx = subWord(shift(col5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 373 colx = subWord(shift(col7, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 576 …r0 = T0[t0&255] ^ shift(T0[(t1>>8)&255], 24) ^ shift(T0[(t2>>16)&255], 16) ^ shift(T0[(r3>>24)&255… in encryptBlock() 577 …r1 = T0[t1&255] ^ shift(T0[(t2>>8)&255], 24) ^ shift(T0[(r3>>16)&255], 16) ^ shift(T0[(t0>>24)&255… in encryptBlock() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
D | AESEngine.java | 225 private static int shift(int r, int shift) in shift() method in AESEngine 227 return (r >>> shift) | (r << -shift); in shift() 265 t1 = t0 ^ shift(t0, 8); in inv_mcol() 268 t0 ^= t1 ^ shift(t1, 16); in inv_mcol() 306 int colx = subWord(shift(col3, 8)) ^ rcon[i - 1]; in generateWorkingKey() 330 colx = subWord(shift(col5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 339 colx = subWord(shift(col5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 371 colx = subWord(shift(col7, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey() 574 …r0 = T0[t0&255] ^ shift(T0[(t1>>8)&255], 24) ^ shift(T0[(t2>>16)&255], 16) ^ shift(T0[(r3>>24)&255… in encryptBlock() 575 …r1 = T0[t1&255] ^ shift(T0[(t2>>8)&255], 24) ^ shift(T0[(r3>>16)&255], 16) ^ shift(T0[(t0>>24)&255… in encryptBlock() [all …]
|
/external/skqp/src/core/ |
D | SkEdge.cpp | 37 int shift) { in setLine() argument 42 x0 = SkScalarRoundToFDot6(p0.fX, shift); in setLine() 43 y0 = SkScalarRoundToFDot6(p0.fY, shift); in setLine() 44 x1 = SkScalarRoundToFDot6(p1.fX, shift); in setLine() 45 y1 = SkScalarRoundToFDot6(p1.fY, shift); in setLine() 47 float scale = float(1 << (shift + 6)); in setLine() 181 bool SkQuadraticEdge::setQuadraticWithoutUpdate(const SkPoint pts[3], int shift) { in setQuadraticWithoutUpdate() argument 186 x0 = SkScalarRoundToFDot6(pts[0].fX, shift); in setQuadraticWithoutUpdate() 187 y0 = SkScalarRoundToFDot6(pts[0].fY, shift); in setQuadraticWithoutUpdate() 188 x1 = SkScalarRoundToFDot6(pts[1].fX, shift); in setQuadraticWithoutUpdate() [all …]
|
/external/skia/src/core/ |
D | SkEdge.cpp | 37 int shift) { in setLine() argument 42 x0 = SkScalarRoundToFDot6(p0.fX, shift); in setLine() 43 y0 = SkScalarRoundToFDot6(p0.fY, shift); in setLine() 44 x1 = SkScalarRoundToFDot6(p1.fX, shift); in setLine() 45 y1 = SkScalarRoundToFDot6(p1.fY, shift); in setLine() 47 float scale = float(1 << (shift + 6)); in setLine() 181 bool SkQuadraticEdge::setQuadraticWithoutUpdate(const SkPoint pts[3], int shift) { in setQuadraticWithoutUpdate() argument 186 x0 = SkScalarRoundToFDot6(pts[0].fX, shift); in setQuadraticWithoutUpdate() 187 y0 = SkScalarRoundToFDot6(pts[0].fY, shift); in setQuadraticWithoutUpdate() 188 x1 = SkScalarRoundToFDot6(pts[1].fX, shift); in setQuadraticWithoutUpdate() [all …]
|
/external/aac/libSBRdec/src/ |
D | transcendent.h | 146 int shift; in FDK_add_MantExp() local 156 shift = (int)(a_e - b_e); in FDK_add_MantExp() 158 shiftAbs = (shift > 0) ? shift : -shift; in FDK_add_MantExp() 160 shiftedMantissa = (shift > 0) ? (FX_SGL2FX_DBL(b_m) >> shiftAbs) in FDK_add_MantExp() 162 otherMantissa = (shift > 0) ? FX_SGL2FX_DBL(a_m) : FX_SGL2FX_DBL(b_m); in FDK_add_MantExp() 163 *ptrSum_e = (shift > 0) ? a_e : b_e; in FDK_add_MantExp() 185 int shift; in FDK_add_MantExp() local 195 shift = (int)(a_e - b_e); in FDK_add_MantExp() 197 shiftAbs = (shift > 0) ? shift : -shift; in FDK_add_MantExp() 199 shiftedMantissa = (shift > 0) ? (b >> shiftAbs) : (a >> shiftAbs); in FDK_add_MantExp() [all …]
|
/external/google-fruit/extras/scripts/ |
D | parser.out | 64 ASTERISK shift and go to state 4 65 AMPERSAND shift and go to state 3 66 DOUBLE_COLON shift and go to state 7 67 IDENTIFIER shift and go to state 6 68 LPAREN shift and go to state 8 69 LBRACKET shift and go to state 5 70 LBRACE shift and go to state 9 71 LESS_THAN shift and go to state 2 73 balanced_string shift and go to state 1 98 GREATER_THAN shift and go to state 11 [all …]
|
/external/libopus/silk/ |
D | MacroDebug.h | 546 static OPUS_INLINE opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){ in silk_LSHIFT8_() argument 549 ret = a << shift; in silk_LSHIFT8_() 550 fail |= shift < 0; in silk_LSHIFT8_() 551 fail |= shift >= 8; in silk_LSHIFT8_() 552 fail |= (opus_int64)ret != ((opus_int64)a) << shift; in silk_LSHIFT8_() 555 fprintf (stderr, "silk_LSHIFT8(%d, %d) in %s: line %d\n", a, shift, file, line); in silk_LSHIFT8_() 565 static OPUS_INLINE opus_int16 silk_LSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){ in silk_LSHIFT16_() argument 568 ret = a << shift; in silk_LSHIFT16_() 569 fail |= shift < 0; in silk_LSHIFT16_() 570 fail |= shift >= 16; in silk_LSHIFT16_() [all …]
|
/external/llvm/test/CodeGen/SystemZ/ |
D | shift-05.ll | 10 %shift = shl i64 %a, 1 11 ret i64 %shift 19 %shift = shl i64 %a, 63 20 ret i64 %shift 28 %shift = shl i64 %a, 64 29 ret i64 %shift 37 %shift = shl i64 %a, %amt 38 ret i64 %shift 41 ; Check shift amounts that have a constant term. 47 %shift = shl i64 %a, %add [all …]
|
D | shift-06.ll | 10 %shift = lshr i64 %a, 1 11 ret i64 %shift 19 %shift = lshr i64 %a, 63 20 ret i64 %shift 28 %shift = lshr i64 %a, 64 29 ret i64 %shift 37 %shift = lshr i64 %a, %amt 38 ret i64 %shift 41 ; Check shift amounts that have a constant term. 47 %shift = lshr i64 %a, %add [all …]
|
D | shift-07.ll | 10 %shift = ashr i64 %a, 1 11 ret i64 %shift 19 %shift = ashr i64 %a, 63 20 ret i64 %shift 28 %shift = ashr i64 %a, 64 29 ret i64 %shift 37 %shift = ashr i64 %a, %amt 38 ret i64 %shift 41 ; Check shift amounts that have a constant term. 47 %shift = ashr i64 %a, %add [all …]
|
/external/llvm-project/clang/test/CodeGen/arm-mve-intrinsics/ |
D | scalar-shifts.c | 20 int64_t test_asrl(int64_t value, int32_t shift) in test_asrl() argument 22 return asrl(value, shift); in test_asrl() 39 uint64_t test_lsll(uint64_t value, int32_t shift) in test_lsll() argument 41 return lsll(value, shift); in test_lsll() 49 int32_t test_sqrshr(int32_t value, int32_t shift) in test_sqrshr() argument 51 return sqrshr(value, shift); in test_sqrshr() 68 int64_t test_sqrshrl(int64_t value, int32_t shift) in test_sqrshrl() argument 70 return sqrshrl(value, shift); in test_sqrshrl() 87 int64_t test_sqrshrl_sat48(int64_t value, int32_t shift) in test_sqrshrl_sat48() argument 89 return sqrshrl_sat48(value, shift); in test_sqrshrl_sat48() [all …]
|