Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 1890) sorted by relevance

12345678910>>...76

/third_party/python/Lib/test/decimaltestdata/
DdqShift.decTest2 -- 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 …]
DddShift.decTest2 -- 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 …]
Dshift.decTest2 -- 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/skia/src/core/
DSkEdge.cpp37 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/
Darray-prototype-shift.js19 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/ffmpeg/libavcodec/
Dnellymoser.c85 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 …]
Dwnv1.c44 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 …]
Daacsbr_fixed.c240 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 …]
Dflacdsp_lpc_template.c50 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 …]
Dac3dec_fixed.c67 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 …]
/third_party/node/test/parallel/
Dtest-readline-keys.js10 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
140 { name: 'f1', sequence: '\x1b[2P', code: '[P', shift: true, meta: false, ctrl: false }, property
141 { name: 'f1', sequence: '\x1b[3P', code: '[P', shift: false, meta: true, ctrl: false }, property
142 { name: 'f1', sequence: '\x1b[4P', code: '[P', shift: true, meta: true, ctrl: false }, property
143 { name: 'f1', sequence: '\x1b[5P', code: '[P', shift: false, meta: false, ctrl: true }, property
144 { name: 'f1', sequence: '\x1b[6P', code: '[P', shift: true, meta: false, ctrl: true }, property
[all …]
Dtest-console.js223 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/
Dfttrigon.c136 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/
DCMakeLists.txt31 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/vixl/test/aarch32/config/
Dcond-rd-rn-operand-rm-shift-amount-1to31-a32.json29 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
30 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
31 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
32 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
33 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
34 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
35 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
36 "Ands", // ANDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
37 "Bic", // BIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
38 "Bics", // BICS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
[all …]
Dcond-rd-rn-operand-rm-shift-amount-1to32-a32.json29 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
30 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
31 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
32 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
33 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
34 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
35 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
36 "Ands", // ANDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
37 "Bic", // BIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
38 "Bics", // BICS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
[all …]
Dcond-rd-rn-operand-rm-shift-amount-1to31-t32.json33 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
34 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
35 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T3
36 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; T3
37 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T3
38 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; T3
39 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
40 "Ands", // ANDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
41 "Bic", // BIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
42 "Bics", // BICS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
[all …]
Dcond-rd-rn-operand-rm-shift-amount-1to32-t32.json33 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
34 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
35 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T3
36 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; T3
37 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T3
38 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; T3
39 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
40 "Ands", // ANDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
41 "Bic", // BIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
42 "Bics", // BICS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; T2
[all …]
Dcond-rd-rn-operand-rm-a32.json29 // MNEMONIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> }
32 // Note that this test only covers the cases where the optional shift
33 // operand is not provided. The shift operands are tested in
38 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
39 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
40 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
41 // ADD{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
42 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
43 // ADDS{<c>}{<q>} {<Rd>}, SP, <Rm> {, <shift> #<amount> } ; A1
44 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm> {, <shift> #<amount> } ; A1
[all …]
Dcond-rd-rn-operand-rm-shift-rs-a32.json29 "Adc", // ADC{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
30 "Adcs", // ADCS{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
31 "Add", // ADD{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
32 "Adds", // ADDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
33 "And", // AND{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
34 "Ands", // ANDS{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
35 "Bic", // BIC{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
36 "Bics", // BICS{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
37 "Eor", // EOR{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
38 "Eors", // EORS{<c>}{<q>} {<Rd>}, <Rn>, <Rm>, <shift> <Rs> ; A1
[all …]
/third_party/rust/crates/minimal-lexical/src/
Drounding.rs41 let shift = -fp.exp + 1; in round() localVariable
42 debug_assert!(shift <= 65); in round()
43 cb(fp, shift.min(64)); in round()
77 pub fn round_nearest_tie_even<Cb>(fp: &mut ExtendedFloat, shift: i32, cb: Cb) in round_nearest_tie_even()
83 debug_assert!(shift <= 64); in round_nearest_tie_even()
91 let mask = lower_n_mask(shift as u64); in round_nearest_tie_even()
92 let halfway = lower_n_halfway(shift as u64); in round_nearest_tie_even()
107 fp.mant = match shift == 64 { in round_nearest_tie_even()
109 false => fp.mant >> shift, in round_nearest_tie_even()
111 fp.exp += shift; in round_nearest_tie_even()
[all …]
/third_party/node/deps/v8/src/bigint/
Ddiv-helpers.cc25 void LeftShift(RWDigits Z, Digits X, int shift) { in LeftShift() argument
26 DCHECK(shift >= 0); in LeftShift()
27 DCHECK(shift < kDigitBits); in LeftShift()
29 if (shift == 0) return Copy(Z, X); in LeftShift()
34 Z[i] = (d << shift) | carry; in LeftShift()
35 carry = d >> (kDigitBits - shift); in LeftShift()
47 void RightShift(RWDigits Z, Digits X, int shift) { in RightShift() argument
48 DCHECK(shift >= 0); in RightShift()
49 DCHECK(shift < kDigitBits); in RightShift()
52 if (shift == 0) return Copy(Z, X); in RightShift()
[all …]
/third_party/node/deps/openssl/openssl/ssl/record/
Ddtls1_bitmap.c41 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/openssl/ssl/record/
Ddtls1_bitmap.c41 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/rust/crates/memchr/src/memmem/
Dtwoway.rs74 shift: Shift, field
94 let shift = Shift::forward(needle, period_lower_bound, critical_pos); in new() localVariable
95 Forward(TwoWay { byteset, critical_pos, shift }) in new()
116 match self.0.shift { in find()
120 Shift::Large { shift } => { in find()
121 self.find_large_imp(pre, haystack, needle, shift) in find()
161 let mut shift = 0; in find_small_imp() localVariable
163 let mut i = cmp::max(self.0.critical_pos, shift); in find_small_imp()
167 shift = 0; in find_small_imp()
176 shift = 0; in find_small_imp()
[all …]

12345678910>>...76