/third_party/python/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 …]
|
/third_party/flutter/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 …]
|
/third_party/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 …]
|
/third_party/jerryscript/tests/jerry/ |
D | array-prototype-shift.js | 19 assert(array.shift() === "foo"); 22 var a = array.shift(); 26 assert(array.shift() === Infinity); 29 assert(array.shift() === 4); 32 assert(array.shift() === undefined); 40 var obj = { shift : Array.prototype.shift }; property 44 obj.shift(); 52 var obj = { shift : Array.prototype.shift }; property 56 obj.shift(); 64 var obj = { shift : Array.prototype.shift }; property [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/ |
D | quantize.c | 33 int shift = 0; in QuantizeMultiplierSmallerThanOne() local 34 QuantizeMultiplier(double_multiplier, quantized_multiplier, &shift); in QuantizeMultiplierSmallerThanOne() 35 *right_shift = -shift; in QuantizeMultiplierSmallerThanOne() 40 int shift = 0; in QuantizeRoundParameterWithDoublePrecision() local 41 QuantizeMultiplierSmallerThanOne(double_multiplier, quantized_multiplier, &shift); in QuantizeRoundParameterWithDoublePrecision() 42 shift = -shift; in QuantizeRoundParameterWithDoublePrecision() 43 if (shift < 0) { in QuantizeRoundParameterWithDoublePrecision() 45 *right_shift = shift; in QuantizeRoundParameterWithDoublePrecision() 47 *left_shift = shift; in QuantizeRoundParameterWithDoublePrecision() 54 int shift = 0; in QuantizeRoundParameterWithSinglePrecision() local [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | nellymoser.c | 85 static inline int signed_shift(int i, int shift) { in signed_shift() argument 86 if (shift > 0) in signed_shift() 87 return (unsigned)i << shift; in signed_shift() 88 return i >> -shift; in signed_shift() 91 static int sum_bits(short *buf, short shift, short off) in sum_bits() argument 97 b = ((b>>(shift-1))+1)>>1; in sum_bits() 121 short shift, shift_saved; in ff_nelly_get_sample_bits() local 130 shift = -16; in ff_nelly_get_sample_bits() 131 shift += headroom(&max); in ff_nelly_get_sample_bits() 135 sbuf[i] = signed_shift(buf[i], shift); in ff_nelly_get_sample_bits() [all …]
|
D | wnv1.c | 44 static inline int wnv1_get_code(GetBitContext *gb, int shift, int base_value) in wnv1_get_code() argument 49 return get_bits(gb, 8 - shift) << shift; in wnv1_get_code() 51 return base_value + v * (1 << shift); in wnv1_get_code() 63 int i, j, ret, shift; in decode_frame() local 79 shift = 2; in decode_frame() 81 shift = 8 - (buf[2] >> 4); in decode_frame() 82 if (shift > 4) { in decode_frame() 86 shift = 4; in decode_frame() 88 if (shift < 1) { in decode_frame() 92 shift = 1; in decode_frame() [all …]
|
D | aacsbr_fixed.c | 240 int shift, round; in sbr_hf_inverse_filter() local 287 shift = a00.exp; in sbr_hf_inverse_filter() 288 if (shift >= 3) in sbr_hf_inverse_filter() 290 else if (shift <= -30) in sbr_hf_inverse_filter() 293 shift = 1-shift; in sbr_hf_inverse_filter() 294 if (shift <= 0) in sbr_hf_inverse_filter() 295 alpha0[k][0] = a00.mant * (1<<-shift); in sbr_hf_inverse_filter() 297 round = 1 << (shift-1); in sbr_hf_inverse_filter() 298 alpha0[k][0] = (a00.mant + round) >> shift; in sbr_hf_inverse_filter() 302 shift = a01.exp; in sbr_hf_inverse_filter() [all …]
|
D | flacdsp_lpc_template.c | 50 const int32_t *coefs, int shift, int big) in FUNC() 103 res[i ] = smp[i ] - CLIP(p0 >> shift); in FUNC() 104 res[i+1] = smp[i+1] - CLIP(p1 >> shift); in FUNC() 109 int order, const int32_t *coefs, int shift) in FUNC() 125 res[i ] = smp[i ] - CLIP(p0 >> shift); in FUNC() 126 res[i+1] = smp[i+1] - CLIP(p1 >> shift); in FUNC() 130 case 1: FUNC(lpc_encode_unrolled)(res, smp, len, 1, coefs, shift, 0); break; in FUNC() 131 case 2: FUNC(lpc_encode_unrolled)(res, smp, len, 2, coefs, shift, 0); break; in FUNC() 132 case 3: FUNC(lpc_encode_unrolled)(res, smp, len, 3, coefs, shift, 0); break; in FUNC() 133 case 4: FUNC(lpc_encode_unrolled)(res, smp, len, 4, coefs, shift, 0); break; in FUNC() [all …]
|
D | ac3dec_fixed.c | 67 int i, shift; in scale_coefs() local 72 shift = 4 - (sign_extend(dynrng, 9) >> 5); in scale_coefs() 73 if (shift > 0 ) { in scale_coefs() 74 round = 1 << (shift-1); in scale_coefs() 83 dst[i] = temp >> shift; in scale_coefs() 87 dst[i+1] = temp1 >> shift; in scale_coefs() 90 dst[i+2] = temp2 >> shift; in scale_coefs() 94 dst[i+3] = temp3 >> shift; in scale_coefs() 97 dst[i+4] = temp4 >> shift; in scale_coefs() 102 dst[i+5] = temp5 >> shift; in scale_coefs() [all …]
|
D | dvaudiodec.c | 72 uint16_t shift, result; in dv_audio_12to16() local 75 shift = (sample & 0xf00) >> 8; in dv_audio_12to16() 77 if (shift < 0x2 || shift > 0xd) { in dv_audio_12to16() 79 } else if (shift < 0x8) { in dv_audio_12to16() 80 shift--; in dv_audio_12to16() 81 result = (sample - (256 * shift)) << shift; in dv_audio_12to16() 83 shift = 0xe - shift; in dv_audio_12to16() 84 result = ((sample + ((256 * shift) + 1)) << shift) - 1; in dv_audio_12to16()
|
/third_party/node/test/parallel/ |
D | test-readline-keys.js | 10 return Object.assign({ ctrl: false, meta: false, shift: false }, k); property 90 { name: 'j', sequence: 'J', shift: true }, property 91 { name: 's', sequence: 'S', shift: true }, property 134 { name: 'a', sequence: 'A', shift: true }, property 135 { name: 'a', sequence: '\x1bA', meta: true, shift: true }, property 141 { name: 'f1', sequence: '\x1b[2P', code: '[P', shift: true, meta: false, ctrl: false }, property 142 { name: 'f1', sequence: '\x1b[3P', code: '[P', shift: false, meta: true, ctrl: false }, property 143 { name: 'f1', sequence: '\x1b[4P', code: '[P', shift: true, meta: true, ctrl: false }, property 144 { name: 'f1', sequence: '\x1b[5P', code: '[P', shift: false, meta: false, ctrl: true }, property 145 { name: 'f1', sequence: '\x1b[6P', code: '[P', shift: true, meta: false, ctrl: true }, property [all …]
|
D | test-console.js | 223 assert.strictEqual(strings.shift(), `${expected}\n`); 224 assert.strictEqual(errStrings.shift(), `${expected}\n`); 228 assert.strictEqual(strings.shift(), `${expected}\n`); 229 assert.strictEqual(errStrings.shift(), `${expected}\n`); 233 assert.strictEqual(strings.shift(), `${expected}\n`); 236 assert.strictEqual(strings.shift(), 239 assert.strictEqual(strings.shift(), 242 assert.ok(strings.shift().includes('foo: [Object]')); 243 assert.strictEqual(strings.shift().includes('baz'), false); 244 assert.strictEqual(strings.shift(), 'inspect inspect\n'); [all …]
|
/third_party/skia/third_party/externals/freetype/src/base/ |
D | fttrigon.c | 136 FT_Int shift; in ft_trig_prenorm() local 142 shift = FT_MSB( (FT_UInt32)( FT_ABS( x ) | FT_ABS( y ) ) ); in ft_trig_prenorm() 144 if ( shift <= FT_TRIG_SAFE_MSB ) in ft_trig_prenorm() 146 shift = FT_TRIG_SAFE_MSB - shift; in ft_trig_prenorm() 147 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm() 148 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm() 152 shift -= FT_TRIG_SAFE_MSB; in ft_trig_prenorm() 153 vec->x = x >> shift; in ft_trig_prenorm() 154 vec->y = y >> shift; in ft_trig_prenorm() 155 shift = -shift; in ft_trig_prenorm() [all …]
|
/third_party/flutter/skia/third_party/externals/freetype/src/base/ |
D | fttrigon.c | 137 FT_Int shift; in ft_trig_prenorm() local 143 shift = FT_MSB( (FT_UInt32)( FT_ABS( x ) | FT_ABS( y ) ) ); in ft_trig_prenorm() 145 if ( shift <= FT_TRIG_SAFE_MSB ) in ft_trig_prenorm() 147 shift = FT_TRIG_SAFE_MSB - shift; in ft_trig_prenorm() 148 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm() 149 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm() 153 shift -= FT_TRIG_SAFE_MSB; in ft_trig_prenorm() 154 vec->x = x >> shift; in ft_trig_prenorm() 155 vec->y = y >> shift; in ft_trig_prenorm() 156 shift = -shift; in ft_trig_prenorm() [all …]
|
/third_party/freetype/src/base/ |
D | fttrigon.c | 136 FT_Int shift; in ft_trig_prenorm() local 142 shift = FT_MSB( (FT_UInt32)( FT_ABS( x ) | FT_ABS( y ) ) ); in ft_trig_prenorm() 144 if ( shift <= FT_TRIG_SAFE_MSB ) in ft_trig_prenorm() 146 shift = FT_TRIG_SAFE_MSB - shift; in ft_trig_prenorm() 147 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm() 148 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm() 152 shift -= FT_TRIG_SAFE_MSB; in ft_trig_prenorm() 153 vec->x = x >> shift; in ft_trig_prenorm() 154 vec->y = y >> shift; in ft_trig_prenorm() 155 shift = -shift; in ft_trig_prenorm() [all …]
|
/third_party/musl/ndk-test/sanitize/ubsan/ |
D | CMakeLists.txt | 31 elseif(${testname} STREQUAL "shift") 32 set(UBSAN_SHIFT_FLAG "-fno-sanitize-recover=shift") 35 …# CHECK-LSH_OVERFLOW: shift.cpp:[[@LINE+1]]:5: runtime error: left shift of negative value -214748… 36 add_executable(shift-lsh-overflow ${srcfile}) 37 …target_compile_options(shift-lsh-overflow PRIVATE -fsanitize=shift ${UBSAN_SHIFT_FLAG} "-DLSH_OVER… 38 add_executable(shift-lsh-overflow-1 ${srcfile}) 39 …target_compile_options(shift-lsh-overflow-1 PRIVATE -fsanitize=shift-base ${UBSAN_SHIFT_FLAG} "-DL… 40 add_executable(shift-lsh-overflow-2 ${srcfile}) 41 …target_compile_options(shift-lsh-overflow-2 PRIVATE -fsanitize=shift-exponent ${UBSAN_SHIFT_FLAG} … 43 # CHECK-TOO_LOW: shift.cpp:[[@LINE+1]]:5: runtime error: shift exponent -3 is negative [all …]
|
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/ |
D | reduce_int8_coder.cc | 34 int shift; in CalculateQuantArgs() local 35 QuantizeMultiplierSmallerThanOne(input_output_multiplier, &quant_arg_.in_out_multiplier_, &shift); in CalculateQuantArgs() 36 quant_arg_.in_out_left_shift_ = shift < 0 ? -shift : 0; in CalculateQuantArgs() 37 quant_arg_.in_out_right_shift_ = shift > 0 ? shift : 0; in CalculateQuantArgs() 50 QuantizeMultiplierSmallerThanOne(reciprocal, &qm->multiplier_, &shift); in CalculateQuantArgs() 51 qm->left_shift_ = shift < 0 ? -shift : 0; in CalculateQuantArgs() 52 qm->right_shift_ = shift > 0 ? shift : 0; in CalculateQuantArgs() 69 QuantizeMultiplierSmallerThanOne(prod_multiplier, &qm->multiplier_, &shift); in CalculateQuantArgs() 70 qm->left_shift_ = shift < 0 ? -shift : 0; in CalculateQuantArgs() 71 qm->right_shift_ = shift > 0 ? shift : 0; in CalculateQuantArgs() [all …]
|
/third_party/openssl/ssl/record/ |
D | dtls1_bitmap.c | 41 unsigned int shift; in dtls1_record_replay_check() local 49 shift = -cmp; in dtls1_record_replay_check() 50 if (shift >= sizeof(bitmap->map) * 8) in dtls1_record_replay_check() 52 else if (bitmap->map & (1UL << shift)) in dtls1_record_replay_check() 62 unsigned int shift; in dtls1_record_bitmap_update() local 67 shift = cmp; in dtls1_record_bitmap_update() 68 if (shift < sizeof(bitmap->map) * 8) in dtls1_record_bitmap_update() 69 bitmap->map <<= shift, bitmap->map |= 1UL; in dtls1_record_bitmap_update() 74 shift = -cmp; in dtls1_record_bitmap_update() 75 if (shift < sizeof(bitmap->map) * 8) in dtls1_record_bitmap_update() [all …]
|
/third_party/ffmpeg/libavfilter/x86/ |
D | vf_noise.c | 29 const int8_t *noise, int len, int shift) in line_noise_mmx() argument 32 noise += shift; in line_noise_mmx() 58 int len, const int8_t * const *shift) in line_noise_avg_mmx() argument 88 … :: "r" (src+mmx_len), "r" (shift[0]+mmx_len), "r" (shift[1]+mmx_len), "r" (shift[2]+mmx_len), in line_noise_avg_mmx() 94 const int8_t *shift2[3] = { shift[0]+mmx_len, shift[1]+mmx_len, shift[2]+mmx_len }; in line_noise_avg_mmx() 101 const int8_t *noise, int len, int shift) in line_noise_mmxext() argument 104 noise += shift; in line_noise_mmxext()
|
/third_party/boost/libs/atomic/test/ |
D | atomicity_ref.cpp | 132 std::size_t shift = instance * 8; in racy_add() local 133 unsigned int mask = 0xff << shift; in racy_add() 137 value = tmp + (1 << shift); in racy_add() 139 if ((tmp & mask) != (n << shift)) in racy_add() 188 std::size_t shift = instance * 8; in test_arithmetic() local 189 value_type mask = 0xff << shift; in test_arithmetic() 190 value_type increment = 1 << shift; in test_arithmetic() 198 if ( (tmp & mask) != (expected << shift) ) in test_arithmetic() 205 if ( (tmp & mask) != (expected << shift) ) in test_arithmetic() 216 std::size_t shift = instance * 8; in test_bitops() local [all …]
|
D | atomicity.cpp | 126 std::size_t shift = instance * 8; in racy_add() local 127 unsigned int mask = 0xff << shift; in racy_add() 131 value = tmp + (1 << shift); in racy_add() 133 if ((tmp & mask) != (n << shift)) in racy_add() 182 std::size_t shift = instance * 8; in test_arithmetic() local 183 value_type mask = 0xff << shift; in test_arithmetic() 184 value_type increment = 1 << shift; in test_arithmetic() 191 if ( (tmp & mask) != (expected << shift) ) in test_arithmetic() 198 if ( (tmp & mask) != (expected << shift) ) in test_arithmetic() 209 std::size_t shift = instance * 8; in test_bitops() local [all …]
|
/third_party/boost/boost/sort/spreadsort/ |
D | integer_sort.hpp | 167 Right_shift shift, Compare comp) { in integer_sort() argument 171 detail::integer_sort(first, last, shift(*first, 0), shift, comp); in integer_sort() 213 inline void integer_sort(Range& range, Right_shift shift, Compare comp) in integer_sort() argument 215 integer_sort(boost::begin(range), boost::end(range), shift, comp); in integer_sort() 260 Right_shift shift) { in integer_sort() argument 264 detail::integer_sort(first, last, shift(*first, 0), shift); in integer_sort() 306 inline void integer_sort(Range& range, Right_shift shift) in integer_sort() argument 308 integer_sort(boost::begin(range), boost::end(range), shift); in integer_sort()
|