Home
last modified time | relevance | path

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

12345678910>>...74

/external/python/cpython3/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 …]
/external/python/cpython2/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 …]
/external/llvm/test/Analysis/CostModel/X86/
Dvshift-lshr-cost.ll8 ; 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 …]
Dvshift-ashr-cost.ll8 ; 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 …]
Dvshift-shl-cost.ll8 ; 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DAESEngine.java225 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 u = subWord(shift(t3, 8)) ^ rcon[i - 1]; in generateWorkingKey()
325 int u = subWord(shift(t5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey()
335 u = subWord(shift(t5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey()
342 u = subWord(shift(t5, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey()
351 u = subWord(shift(t5, 8)) ^ rcon; in generateWorkingKey()
374 u = subWord(shift(t7, 8)) ^ rcon; rcon <<= 1; in generateWorkingKey()
[all …]
/external/skia/src/core/
DSkEdge.cpp34 int shift) { in setLine() argument
39 x0 = SkScalarRoundToFDot6(p0.fX, shift); in setLine()
40 y0 = SkScalarRoundToFDot6(p0.fY, shift); in setLine()
41 x1 = SkScalarRoundToFDot6(p1.fX, shift); in setLine()
42 y1 = SkScalarRoundToFDot6(p1.fY, shift); in setLine()
44 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/skqp/src/core/
DSkEdge.cpp34 int shift) { in setLine() argument
39 x0 = SkScalarRoundToFDot6(p0.fX, shift); in setLine()
40 y0 = SkScalarRoundToFDot6(p0.fY, shift); in setLine()
41 x1 = SkScalarRoundToFDot6(p1.fX, shift); in setLine()
42 y1 = SkScalarRoundToFDot6(p1.fY, shift); in setLine()
44 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/libopus/silk/
DMacroDebug.h546 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 …]
DSigProc_FIX.h195 …opus_int *shift, /* O Number of bits right shift applied to energ…
501 #define silk_LSHIFT8(a, shift) ((opus_int8)((opus_uint8)(a)<<(shift))) /* shif… argument
502 #define silk_LSHIFT16(a, shift) ((opus_int16)((opus_uint16)(a)<<(shift))) /* shif… argument
503 #define silk_LSHIFT32(a, shift) ((opus_int32)((opus_uint32)(a)<<(shift))) /* shif… argument
504 #define silk_LSHIFT64(a, shift) ((opus_int64)((opus_uint64)(a)<<(shift))) /* shif… argument
505 #define silk_LSHIFT(a, shift) silk_LSHIFT32(a, shift) /* shif… argument
507 #define silk_RSHIFT8(a, shift) ((a)>>(shift)) /* shif… argument
508 #define silk_RSHIFT16(a, shift) ((a)>>(shift)) /* shif… argument
509 #define silk_RSHIFT32(a, shift) ((a)>>(shift)) /* shif… argument
510 #define silk_RSHIFT64(a, shift) ((a)>>(shift)) /* shif… argument
[all …]
/external/aac/libSBRdec/src/
Dtranscendent.h146 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/llvm/test/CodeGen/SystemZ/
Dshift-05.ll10 %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 …]
Dshift-06.ll10 %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 …]
Dshift-07.ll10 %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 …]
Dshift-01.ll10 %shift = shl i32 %a, 1
11 ret i32 %shift
19 %shift = shl i32 %a, 31
20 ret i32 %shift
28 %shift = shl i32 %a, 32
29 ret i32 %shift
32 ; Make sure that we don't generate negative shift amounts.
38 %shift = shl i32 %a, %sub
39 ret i32 %shift
47 %shift = shl i32 %a, %amt
[all …]
Dshift-02.ll10 %shift = lshr i32 %a, 1
11 ret i32 %shift
19 %shift = lshr i32 %a, 31
20 ret i32 %shift
28 %shift = lshr i32 %a, 32
29 ret i32 %shift
32 ; Make sure that we don't generate negative shift amounts.
38 %shift = lshr i32 %a, %sub
39 ret i32 %shift
47 %shift = lshr i32 %a, %amt
[all …]
Dshift-03.ll10 %shift = ashr i32 %a, 1
11 ret i32 %shift
19 %shift = ashr i32 %a, 31
20 ret i32 %shift
28 %shift = ashr i32 %a, 32
29 ret i32 %shift
32 ; Make sure that we don't generate negative shift amounts.
38 %shift = ashr i32 %a, %sub
39 ret i32 %shift
47 %shift = ashr i32 %a, %amt
[all …]
/external/speex/libspeex/
Dfixed_generic.h45 #define SHR16(a,shift) ((a) >> (shift)) argument
46 #define SHL16(a,shift) ((a) << (shift)) argument
47 #define SHR32(a,shift) ((a) >> (shift)) argument
48 #define SHL32(a,shift) ((a) << (shift)) argument
49 #define PSHR16(a,shift) (SHR16((a)+((1<<((shift))>>1)),shift)) argument
50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) argument
51 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) argument
55 #define SATURATE32PSHR(x,shift,a) (((x)>=(SHL32(a,shift))) ? (a) : \ argument
56 (x)<=-(SHL32(a,shift)) ? -(a) : \
57 (PSHR32(x, shift)))
[all …]
/external/libhevc/common/
Dihevc_itrans_recon.c111 WORD32 shift; in ihevc_itrans_recon_4x4_ttype1() local
120 shift = IT_SHIFT_STAGE_1; in ihevc_itrans_recon_4x4_ttype1()
121 add = 1 << (shift - 1); in ihevc_itrans_recon_4x4_ttype1()
139 CLIP_S16((29 * c[0] + 55 * c[1] + c[3] + add) >> shift); in ihevc_itrans_recon_4x4_ttype1()
141 CLIP_S16((55 * c[2] - 29 * c[1] + c[3] + add) >> shift); in ihevc_itrans_recon_4x4_ttype1()
143 … CLIP_S16((74 * (pi2_src[0] - pi2_src[2 * src_strd] + pi2_src[3 * src_strd]) + add) >> shift); in ihevc_itrans_recon_4x4_ttype1()
145 CLIP_S16((55 * c[0] + 29 * c[2] - c[3] + add) >> shift); in ihevc_itrans_recon_4x4_ttype1()
155 shift = IT_SHIFT_STAGE_2; in ihevc_itrans_recon_4x4_ttype1()
156 add = 1 << (shift - 1); in ihevc_itrans_recon_4x4_ttype1()
168 CLIP_S16((29 * c[0] + 55 * c[1] + c[3] + add) >> shift); in ihevc_itrans_recon_4x4_ttype1()
[all …]
/external/freetype/src/base/
Dfttrigon.c137 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 …]
/external/libhevc/decoder/
Dihevcd_boundary_strength.c315 WORD32 shift; in ihevcd_ctb_boundary_strength_islice() local
316 shift = start_pos_y * 2; in ihevcd_ctb_boundary_strength_islice()
322 shift += ((start_pos_x & 2) << (log2_ctb_size - 2)); in ihevcd_ctb_boundary_strength_islice()
323 pu4_vert_bs[start_pos_x >> (7 - log2_ctb_size)] |= (u4_bs << shift); in ihevcd_ctb_boundary_strength_islice()
328 WORD32 shift; in ihevcd_ctb_boundary_strength_islice() local
329 shift = start_pos_x * 2; in ihevcd_ctb_boundary_strength_islice()
335 shift += ((start_pos_y & 2) << (log2_ctb_size - 2)); in ihevcd_ctb_boundary_strength_islice()
336 pu4_horz_bs[start_pos_y >> (7 - log2_ctb_size)] |= (u4_bs << shift); in ihevcd_ctb_boundary_strength_islice()
601 WORD32 shift; in ihevcd_ctb_boundary_strength_pbslice() local
602 shift = start_pos_y * 2; in ihevcd_ctb_boundary_strength_pbslice()
[all …]

12345678910>>...74