Home
last modified time | relevance | path

Searched refs:shift (Results 1 - 25 of 1221) sorted by relevance

12345678910>>...49

/third_party/skia/src/core/
H A DSkEdge.cpp18 the points into FDot6. This is modulated by the shift parameter, which
22 or pt * 256 for antialiasing. This is implemented as 1 << (shift + 6).
25 or pt >> 8 for antialiasing. This is implemented as pt >> (10 - shift).
30 // away data in value, so just perform a modify up-shift in SkFDot6ToFixedDiv2()
37 int shift) { in setLine()
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 in setLine()
36 setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip, int shift) setLine() argument
181 setQuadraticWithoutUpdate(const SkPoint pts[3], int shift) setQuadraticWithoutUpdate() argument
281 setQuadratic(const SkPoint pts[3], int shift) setQuadratic() argument
297 int shift = fCurveShift; updateQuadratic() local
351 setCubicWithoutUpdate(const SkPoint pts[4], int shift, bool sortY) setCubicWithoutUpdate() argument
451 setCubic(const SkPoint pts[4], int shift) setCubic() argument
[all...]
/third_party/ffmpeg/libavcodec/
H A Dnellymoser.c87 static inline int signed_shift(int i, int shift) { in signed_shift() argument
88 if (shift > 0) in signed_shift()
89 return (unsigned)i << shift; in signed_shift()
90 return i >> -shift; in signed_shift()
93 static int sum_bits(short *buf, short shift, short off) in sum_bits() argument
99 b = ((b>>(shift-1))+1)>>1; in sum_bits()
123 short shift, shift_saved; in ff_nelly_get_sample_bits() local
132 shift = -16; in ff_nelly_get_sample_bits()
133 shift += headroom(&max); in ff_nelly_get_sample_bits()
137 sbuf[i] = signed_shift(buf[i], shift); in ff_nelly_get_sample_bits()
[all...]
H A Dwnv1.c45 static inline int wnv1_get_code(GetBitContext *gb, int shift, int base_value) in wnv1_get_code() argument
50 return get_bits(gb, 8 - shift) << shift; in wnv1_get_code()
52 return base_value + v * (1 << shift); in wnv1_get_code()
62 int i, j, ret, shift; in decode_frame() local
78 shift = 2; in decode_frame()
80 shift = 8 - (buf[2] >> 4); in decode_frame()
81 if (shift > 4) { in decode_frame()
85 shift = 4; in decode_frame()
87 if (shift < in decode_frame()
[all...]
H A 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()
570 int shift; sbr_hf_assemble() local
[all...]
H A Dflacdsp_lpc_template.c50 const int32_t *coefs, int shift, int big) in lpc_encode_unrolled()
103 res[i ] = smp[i ] - CLIP(p0 >> shift); in lpc_encode_unrolled()
104 res[i+1] = smp[i+1] - CLIP(p1 >> shift); in lpc_encode_unrolled()
109 int order, const int32_t *coefs, int shift) in flac_lpc_encode_c()
125 res[i ] = smp[i ] - CLIP(p0 >> shift); in flac_lpc_encode_c()
126 res[i+1] = smp[i+1] - CLIP(p1 >> shift); in flac_lpc_encode_c()
130 case 1: FUNC(lpc_encode_unrolled)(res, smp, len, 1, coefs, shift, 0); break; in flac_lpc_encode_c()
131 case 2: FUNC(lpc_encode_unrolled)(res, smp, len, 2, coefs, shift, 0); break; in flac_lpc_encode_c()
132 case 3: FUNC(lpc_encode_unrolled)(res, smp, len, 3, coefs, shift, 0); break; in flac_lpc_encode_c()
133 case 4: FUNC(lpc_encode_unrolled)(res, smp, len, 4, coefs, shift, in flac_lpc_encode_c()
48 lpc_encode_unrolled(int32_t *res, const int32_t *smp, int len, int order, const int32_t *coefs, int shift, int big) lpc_encode_unrolled() argument
108 flac_lpc_encode_c(int32_t *res, const int32_t *smp, int len, int order, const int32_t *coefs, int shift) flac_lpc_encode_c() argument
[all...]
H A 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()
110 mul <<= shift; scale_coefs() local
[all...]
H A Ddvaudiodec.c70 uint16_t shift, result; in dv_audio_12to16() local
73 shift = (sample & 0xf00) >> 8; in dv_audio_12to16()
75 if (shift < 0x2 || shift > 0xd) { in dv_audio_12to16()
77 } else if (shift < 0x8) { in dv_audio_12to16()
78 shift--; in dv_audio_12to16()
79 result = (sample - (256 * shift)) << shift; in dv_audio_12to16()
81 shift = 0xe - shift; in dv_audio_12to16()
[all...]
H A Dflacdsp_template.c52 int channels, int len, int shift) in flac_decorrelate_indep_c()
59 S(samples, i, j) = (int)((unsigned)in[i][j] << shift); in flac_decorrelate_indep_c()
63 int channels, int len, int shift) in flac_decorrelate_ls_c()
71 S(samples, 0, i) = a << shift; in flac_decorrelate_ls_c()
72 S(samples, 1, i) = (a - b) << shift; in flac_decorrelate_ls_c()
77 int channels, int len, int shift) in flac_decorrelate_rs_c()
85 S(samples, 0, i) = (a + b) << shift; in flac_decorrelate_rs_c()
86 S(samples, 1, i) = b << shift; in flac_decorrelate_rs_c()
91 int channels, int len, int shift) in flac_decorrelate_ms_c()
100 S(samples, 0, i) = (a + b) << shift; in flac_decorrelate_ms_c()
51 flac_decorrelate_indep_c(uint8_t **out, int32_t **in, int channels, int len, int shift) flac_decorrelate_indep_c() argument
62 flac_decorrelate_ls_c(uint8_t **out, int32_t **in, int channels, int len, int shift) flac_decorrelate_ls_c() argument
76 flac_decorrelate_rs_c(uint8_t **out, int32_t **in, int channels, int len, int shift) flac_decorrelate_rs_c() argument
90 flac_decorrelate_ms_c(uint8_t **out, int32_t **in, int channels, int len, int shift) flac_decorrelate_ms_c() argument
[all...]
/third_party/jerryscript/tests/jerry/
H A 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 };
44 obj.shift();
52 var obj = { shift : Array.prototype.shift };
[all...]
/third_party/pulseaudio/speex/libspeexdsp/
H A Dfixed_generic.h45 #define SHR16(a,shift) ((a) >> (shift))
46 #define SHL16(a,shift) ((a) << (shift))
47 #define SHR32(a,shift) ((a) >> (shift))
48 #define SHL32(a,shift) ((a) << (shift))
49 #define PSHR16(a,shift) (SHR16((a)+((1<<((shift))>>
[all...]
H A Dfixed_debug.h103 #define SHR16(a, shift) _SHR16(a, shift, __FILE__, __LINE__)
104 static inline short _SHR16(int a, int shift, char *file, int line) in _SHR16() argument
107 if (!VERIFY_SHORT(a) || !VERIFY_SHORT(shift)) in _SHR16()
109 fprintf (stderr, "SHR16: inputs are not short: %d >> %d in %s: line %d\n", a, shift, file, line); in _SHR16()
111 res = a>>shift; in _SHR16()
117 #define SHL16(a, shift) _SHL16(a, shift, __FILE__, __LINE__)
118 static inline short _SHL16(int a, int shift, char *file, int line) in _SHL16() argument
121 if (!VERIFY_SHORT(a) || !VERIFY_SHORT(shift)) in _SHL16()
132 SHR32(long long a, int shift) SHR32() argument
147 SHL32(long long a, int shift) SHL32() argument
[all...]
/third_party/node/test/parallel/
H A Dtest-readline-keys.js10 return Object.assign({ ctrl: false, meta: false, shift: false }, k);
90 { name: 'j', sequence: 'J', shift: true },
91 { name: 's', sequence: 'S', shift: true },
134 { name: 'a', sequence: 'A', shift: true },
135 { name: 'a', sequence: '\x1bA', meta: true, shift: true },
140 { name: 'f1', sequence: '\x1b[2P', code: '[P', shift: true, meta: false, ctrl: false },
141 { name: 'f1', sequence: '\x1b[3P', code: '[P', shift: false, meta: true, ctrl: false },
142 { name: 'f1', sequence: '\x1b[4P', code: '[P', shift: true, meta: true, ctrl: false },
143 { name: 'f1', sequence: '\x1b[5P', code: '[P', shift: false, meta: false, ctrl: true },
144 { name: 'f1', sequence: '\x1b[6P', code: '[P', shift
[all...]
H A 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(), 'inspec
[all...]
H A Dtest-priority-queue.js17 assert.strictEqual(queue.shift(), i);
20 assert.strictEqual(queue.shift(), undefined);
27 assert.strictEqual(queue.shift(), i);
30 assert.strictEqual(queue.shift(), undefined);
40 assert.strictEqual(queue.shift(), i);
43 assert.strictEqual(queue.shift(), undefined);
53 assert.strictEqual(queue.shift(), i);
56 assert.strictEqual(queue.shift(), undefined);
105 assert.strictEqual(queue.shift().value, 1);
106 assert.strictEqual(queue.shift()
[all...]
/third_party/skia/third_party/externals/freetype/src/base/
H A 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()
380 FT_Int shift; FT_Vector_Rotate() local
419 FT_Int shift; FT_EXPORT_DEF() local
458 FT_Int shift; FT_Vector_Polarize() local
[all...]
/third_party/rust/crates/minimal-lexical/src/
H A Drounding.rs27 // Calculate our shift in significant digits. in round()
30 // Check for a denormal float, if after the shift the exponent is negative. in round()
39 // This might round-down to 0, but shift will be at **max** 65, in round()
41 let shift = -fp.exp + 1; in round()
42 debug_assert!(shift <= 65); in round()
43 cb(fp, shift.min(64)); in round()
52 // Check if we carried, and if so, shift the bit to the hidden bit. 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 a in round_nearest_tie_even()
[all...]
/third_party/node/deps/v8/src/bigint/
H A Ddiv-helpers.cc23 // Z := X << shift
24 // Z and X may alias for an in-place shift.
25 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()
45 // Z := X >> shift
46 // Z and X may alias for an in-place shift
47 RightShift(RWDigits Z, Digits X, int shift) RightShift() argument
[all...]
H A Ddiv-helpers.h16 void LeftShift(RWDigits Z, Digits X, int shift);
17 void RightShift(RWDigits Z, Digits X, int shift);
26 // Division algorithms typically need to left-shift their inputs into
34 // If {shift} is not given, it is auto-detected from {original}'s
38 explicit ShiftedDigits(Digits& original, int shift = -1, in ShiftedDigits()
42 if (shift < 0) { in ShiftedDigits()
43 shift = leading_zeros; in ShiftedDigits()
44 } else if (shift > leading_zeros) { in ShiftedDigits()
48 shift_ = shift; in ShiftedDigits()
49 if (shift in ShiftedDigits()
71 int shift() { return shift_; } shift() function in v8::bigint::ShiftedDigits
[all...]
/third_party/node/deps/openssl/openssl/ssl/record/
H A 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 < sizeo in dtls1_record_bitmap_update()
[all...]
/third_party/openssl/ssl/record/
H A 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 < sizeo in dtls1_record_bitmap_update()
[all...]
/third_party/ffmpeg/libavfilter/x86/
H A Dvf_noise.c30 int len, const int8_t * const *shift) in line_noise_avg_mmx()
60 :: "r" (src+mmx_len), "r" (shift[0]+mmx_len), "r" (shift[1]+mmx_len), "r" (shift[2]+mmx_len), in line_noise_avg_mmx()
66 const int8_t *shift2[3] = { shift[0]+mmx_len, shift[1]+mmx_len, shift[2]+mmx_len }; in line_noise_avg_mmx()
73 const int8_t *noise, int len, int shift) in line_noise_mmxext()
76 noise += shift; in line_noise_mmxext()
29 line_noise_avg_mmx(uint8_t *dst, const uint8_t *src, int len, const int8_t * const *shift) line_noise_avg_mmx() argument
72 line_noise_mmxext(uint8_t *dst, const uint8_t *src, const int8_t *noise, int len, int shift) line_noise_mmxext() argument
/third_party/node/deps/v8/src/base/
H A Dbit-field.h22 template <class T, int shift, int size, class U = uint32_t>
26 STATIC_ASSERT(shift < 8 * sizeof(U)); // Otherwise shifts by {shift} are UB.
28 STATIC_ASSERT(shift + size <= 8 * sizeof(U));
35 // without using a shift count of x in the computation.
36 static constexpr int kShift = shift;
70 template <class T, int shift, int size>
71 using BitField8 = BitField<T, shift, size, uint8_t>;
73 template <class T, int shift, int size>
74 using BitField16 = BitField<T, shift, siz
[all...]
/third_party/curl/scripts/
H A Dschemetable.c79 unsigned int calc(const char *s, int add, int shift) in calc() argument
84 c <<= shift; in calc() local
94 static void showtable(int try, int init, int shift) in showtable() argument
99 num[i] = calc(scheme[i].n, init, shift); in showtable()
110 "*/\n", init, shift); in showtable()
150 int shift; in main() local
151 for(shift = 0; shift < 8; shift++) { in main()
154 unsigned int v = calc(scheme[i].n, add, shift); in main()
[all...]
/third_party/skia/src/codec/
H A DSkMasks.cpp61 static uint8_t get_comp(uint32_t pixel, uint32_t mask, uint32_t shift, in get_comp() argument
63 return convert_to_8((pixel & mask) >> shift, size); in get_comp()
72 return get_comp(pixel, fRed.mask, fRed.shift, fRed.size); in getRed()
75 return get_comp(pixel, fGreen.mask, fGreen.shift, fGreen.size); in getGreen()
78 return get_comp(pixel, fBlue.mask, fBlue.shift, fBlue.size); in getBlue()
81 return get_comp(pixel, fAlpha.mask, fAlpha.shift, fAlpha.size); in getAlpha()
92 uint32_t shift = 0; in process_mask() local
97 shift++; in process_mask()
113 shift += size - 8; in process_mask()
115 mask &= 0xFF << shift; in process_mask()
[all...]
/third_party/skia/third_party/externals/libwebp/src/dsp/
H A Drescaler_msa.c27 #define CALC_MULT_FIX_16(in0, in1, in2, in3, scale, shift, dst) do { \
35 SRAR_D4_UD(out0, out1, out2, out3, shift); \
41 SRAR_D4_UD(out0, out1, out2, out3, shift); \
47 #define CALC_MULT_FIX_4(in0, scale, shift, dst) do { \
53 SRAR_D2_UD(out0, out1, shift); \
60 #define CALC_MULT_FIX1_16(in0, in1, in2, in3, fyscale, shift, \
68 SRAR_D4_UD(out0, out1, out2, out3, shift); \
74 SRAR_D4_UD(out0, out1, out2, out3, shift); \
78 #define CALC_MULT_FIX1_4(in0, scale, shift, dst) do { \
83 SRAR_D2_UD(out0, out1, shift); \
121 const v4u32 shift = (v4u32)__msa_fill_w(WEBP_RESCALER_RFIX); ExportRowExpand_0() local
183 const v4u32 shift = (v4u32)__msa_fill_w(WEBP_RESCALER_RFIX); ExportRowExpand_1() local
[all...]

Completed in 9 milliseconds

12345678910>>...49