Home
last modified time | relevance | path

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

12345678910>>...55

/netbsd/src/sys/arch/hppa/spmath/
Dimpys.S98 sh4n: shd pu,pl,4,pl ; shift product right 4 bits
111 ; ---- bits = 0000 ---- shift product 4 bits -------------------------------
113 b sh4n+4 ; just shift partial
116 ; ---- bits = 0001 ---- add op1, then shift 4 bits
118 addb,tr op1,pu,sh4n+4 ; add op1 to product, to shift
121 ; ---- bits = 0010 ---- add op1, add op1, then shift 4 bits
123 addb,tr op1,pu,sh4n ; add 2*op1, to shift
126 ; ---- bits = 0011 ---- add op1, add 2*op1, shift 4 bits
128 addb,tr op1,pu,sh4n-4 ; add op1 & 2*op1, shift
131 ; ---- bits = 0100 ---- shift 2, add op1, shift 2
[all …]
Dimpyu.S103 shd gr0,op2,1,pu ; shift op2 left 31 for result
115 sh4n: shd pu,pl,4,pl ; shift product right 4 bits
128 ; ---- bits = 0000 ---- shift product 4 bits -------------------------------
130 b sh4n+4 ; just shift partial
133 ; ---- bits = 0001 ---- add op1, then shift 4 bits
135 addb,tr op1,pu,sh4n+4 ; add op1 to product, to shift
138 ; ---- bits = 0010 ---- add op1, add op1, then shift 4 bits
140 addb,tr op1,pu,sh4n ; add 2*op1, to shift
143 ; ---- bits = 0011 ---- add op1, add 2*op1, shift 4 bits
145 addb,tr op1,pu,sh4n-4 ; add op1 & 2*op1, shift
[all …]
Ddivu.S76 add quo,quo,quo ; shift msb bit into carry
79 addc quo,quo,quo ; shift quo with/into carry
81 addc quo,quo,quo ; shift quo with/into carry
83 addc quo,quo,quo ; shift quo with/into carry
85 addc quo,quo,quo ; shift quo with/into carry
87 addc quo,quo,quo ; shift quo with/into carry
89 addc quo,quo,quo ; shift quo with/into carry
91 addc quo,quo,quo ; shift quo with/into carry
93 addc quo,quo,quo ; shift quo with/into carry
95 addc quo,quo,quo ; shift quo with/into carry
[all …]
/netbsd/src/external/gpl3/gdb/dist/sim/common/
Dcgen-utils.c189 SHLDI (val, shift) in SHLDI() argument
191 SI shift;
196 return MAKEDI ((hi << shift) | (lo >> (32 - shift)), lo << shift);
200 SLADI (val, shift) in SLADI() argument
202 SI shift;
207 return MAKEDI ((hi << shift) | (lo >> (32 - shift)), lo << shift);
211 SRADI (val, shift) in SRADI() argument
213 SI shift;
219 return MAKEDI (SRASI (hi, shift), (hi << (32 - shift)) | (lo >> shift));
282 RORQI (QI val, int shift) in RORQI() argument
[all …]
Dsim-n-bits.h134 int shift) in ROTn() argument
136 if (shift > 0) in ROTn()
137 return ROTRn (val, shift); in ROTn()
138 else if (shift < 0) in ROTn()
139 return ROTLn (val, -shift); in ROTn()
149 int shift) in ROTLn() argument
152 ASSERT (shift <= N); in ROTLn()
153 result = (((val) << (shift)) | ((val) >> ((N)-(shift)))); in ROTLn()
162 int shift) in ROTRn() argument
165 ASSERT (shift <= N); in ROTRn()
[all …]
/netbsd/src/sys/dev/sun/
Dbtreg.h77 #define BT_INIT(bt, shift) do { /* whatever this means.. */ \ argument
78 (bt)->bt_addr = 0x06 << (shift); /* command reg */ \
79 (bt)->bt_ctrl = 0x73 << (shift); /* overlay plane */ \
80 (bt)->bt_addr = 0x04 << (shift); /* read mask */ \
81 (bt)->bt_ctrl = 0xff << (shift); /* color planes */ \
83 #define BT_UNBLANK(bt, x, shift) do { \ argument
85 (bt)->bt_addr = 0 << (shift); \
87 if ((shift)) { \
91 BT_INIT((bt), (shift)); \
93 #define BT_BLANK(bt, shift) do { \ argument
[all …]
/netbsd/src/sys/external/bsd/drm2/dist/include/drm/
Ddrm_fixed.h101 unsigned shift, sign = (a >> 63) & 1; in drm_fixp_msbset() local
103 for (shift = 62; shift > 0; --shift) in drm_fixp_msbset()
104 if (((a >> shift) & 1) != sign) in drm_fixp_msbset()
105 return shift; in drm_fixp_msbset()
112 unsigned shift = drm_fixp_msbset(a) + drm_fixp_msbset(b); in drm_fixp_mul() local
115 if (shift > 61) { in drm_fixp_mul()
116 shift = shift - 61; in drm_fixp_mul()
117 a >>= (shift >> 1) + (shift & 1); in drm_fixp_mul()
118 b >>= shift >> 1; in drm_fixp_mul()
120 shift = 0; in drm_fixp_mul()
[all …]
/netbsd/src/sys/arch/x68k/dev/
Dkbdmap.c.ascii153 S, 0x99, /* 0x10 shift TAB */
196 S, 0x51, /* shift CRSR RIGHT */
197 S, 0x47, /* shift CRSR UP */
198 S, 0x57, /* shift CRSR LEFT */
199 S, 0x4C, /* shift CRSR DOWN */
237 S, 0x5D, /* shift F1 */
238 S, 0x63, /* shift F2 */
239 S, 0x69, /* shift F3 */
240 S, 0x6F, /* shift F4 */
241 S, 0x75, /* shift F5 */
[all …]
/netbsd/src/external/lgpl3/gmp/dist/mpn/generic/
Dtoom_eval_pm2exp.c43 mp_srcptr xp, mp_size_t n, mp_size_t hn, unsigned shift, in mpn_toom_eval_pm2exp() argument
53 ASSERT (shift*k < GMP_NUMB_BITS); in mpn_toom_eval_pm2exp()
62 xp2[n] = mpn_addlsh_n (xp2, xp, xp + 2*n, n, 2*shift); in mpn_toom_eval_pm2exp()
64 xp2[n] += mpn_addlsh_n (xp2, xp2, xp + i*n, n, i*shift); in mpn_toom_eval_pm2exp()
66 tp[n] = mpn_lshift (tp, xp+n, n, shift); in mpn_toom_eval_pm2exp()
68 tp[n] += mpn_addlsh_n (tp, tp, xp+i*n, n, i*shift); in mpn_toom_eval_pm2exp()
72 cy = mpn_addlsh_n (tp, tp, xp+k*n, hn, k*shift); in mpn_toom_eval_pm2exp()
77 cy = mpn_addlsh_n (xp2, xp2, xp+k*n, hn, k*shift); in mpn_toom_eval_pm2exp()
82 xp2[n] = mpn_lshift (tp, xp+2*n, n, 2*shift); in mpn_toom_eval_pm2exp()
86 xp2[n] += mpn_lshift (tp, xp + i*n, n, i*shift); in mpn_toom_eval_pm2exp()
[all …]
Ddiv_qr_2u_pi1.c46 mp_limb_t d1, mp_limb_t d0, int shift, mp_limb_t di) in mpn_div_qr_2u_pi1() argument
54 ASSERT (shift > 0); in mpn_div_qr_2u_pi1()
56 r2 = np[nn-1] >> (GMP_LIMB_BITS - shift); in mpn_div_qr_2u_pi1()
57 r1 = (np[nn-1] << shift) | (np[nn-2] >> (GMP_LIMB_BITS - shift)); in mpn_div_qr_2u_pi1()
58 r0 = np[nn-2] << shift; in mpn_div_qr_2u_pi1()
66 r1 |= r0 >> (GMP_LIMB_BITS - shift); in mpn_div_qr_2u_pi1()
67 r0 <<= shift; in mpn_div_qr_2u_pi1()
72 rp[0] = (r1 >> shift) | (r2 << (GMP_LIMB_BITS - shift)); in mpn_div_qr_2u_pi1()
73 rp[1] = r2 >> shift; in mpn_div_qr_2u_pi1()
Dpre_divrem_1.c63 mp_limb_t dinv, int shift) in mpn_preinv_divrem_1() argument
78 ASSERT (shift == want_shift); in mpn_preinv_divrem_1()
79 invert_limb (want_dinv, d_unnorm << shift); in mpn_preinv_divrem_1()
87 d = d_unnorm << shift; in mpn_preinv_divrem_1()
90 if (shift == 0) in mpn_preinv_divrem_1()
111 r = ahigh << shift; in mpn_preinv_divrem_1()
119 r |= n1 >> (GMP_LIMB_BITS - shift); in mpn_preinv_divrem_1()
126 ((n1 << shift) | (n0 >> (GMP_LIMB_BITS - shift))), in mpn_preinv_divrem_1()
131 udiv_qrnnd_preinv (*qp, r, r, n1 << shift, d, dinv); in mpn_preinv_divrem_1()
142 return r >> shift; in mpn_preinv_divrem_1()
Dcompute_powtab.c59 dest.shift = sh; \
73 mp_size_t shift; in mpn_compute_powtab_mul() local
102 shift = c; in mpn_compute_powtab_mul()
104 SET_powers_t (pt[0], t, n, digits_in_base, base, shift); in mpn_compute_powtab_mul()
127 shift += c; in mpn_compute_powtab_mul()
138 SET_powers_t (pt[0], t, n, digits_in_base, base, shift); in mpn_compute_powtab_mul()
156 shift *= 2; in mpn_compute_powtab_mul()
161 shift += c; in mpn_compute_powtab_mul()
174 shift += c; in mpn_compute_powtab_mul()
177 SET_powers_t (pt[0], t, n, digits_in_base, base, shift); in mpn_compute_powtab_mul()
[all …]
/netbsd/src/share/man/tools/
D.param13 shift
19 shift
21 shift
25 shift
27 shift
32 shift
37 shift
41 shift
43 shift
47 shift
[all …]
/netbsd/src/external/ibm-public/postfix/dist/src/global/
Dmynetworks.c99 unsigned shift; in mynetworks_core() local
161 shift = IN_CLASSA_NSHIFT; in mynetworks_core()
164 shift = IN_CLASSB_NSHIFT; in mynetworks_core()
167 shift = IN_CLASSC_NSHIFT; in mynetworks_core()
170 shift = IN_CLASSD_NSHIFT; in mynetworks_core()
182 for (junk = mask, shift = MAI_V4ADDR_BITS; junk != 0; in mynetworks_core()
183 shift--, junk <<= 1) in mynetworks_core()
192 shift = 0; in mynetworks_core()
201 inet_ntoa(net), MAI_V4ADDR_BITS - shift); in mynetworks_core()
229 shift = MAI_V6ADDR_BITS; in mynetworks_core()
[all …]
/netbsd/src/common/lib/libc/atomic/
Datomic_cas_by_cas32.c51 const size_t shift = off*8; in _atomic_cas_16() local
52 const uint32_t mask = 0x0ffff << shift; in _atomic_cas_16()
53 const uint32_t old32_part = (uint32_t)old << shift; in _atomic_cas_16()
54 const uint32_t new32_part = (uint32_t)new << shift; in _atomic_cas_16()
60 return (uint16_t)((old32 & mask) >> shift); in _atomic_cas_16()
75 const size_t shift = off*8; in crt_alias() local
76 const uint32_t mask = 0x0ff << shift; in crt_alias()
77 const uint32_t old32_part = (uint32_t)old << shift; in crt_alias()
78 const uint32_t new32_part = (uint32_t)new << shift; in crt_alias()
84 return (uint8_t)((old32 & mask) >> shift); in crt_alias()
/netbsd/src/external/gpl3/gcc/dist/gcc/config/lm32/
Dt-rtems3 MULTILIB_OPTIONS = mmultiply-enabled mbarrel-shift-enabled
7 # MULTILIB_EXCEPTIONS += mmultiply-enabled/mbarrel-shift-enabled/mdivide-enabled/msign-extend-enabl…
8 MULTILIB_EXCEPTIONS += mmultiply-enabled/mbarrel-shift-enabled/mdivide-enabled
9 MULTILIB_EXCEPTIONS += mmultiply-enabled/mbarrel-shift-enabled/msign-extend-enabled
10 # MULTILIB_EXCEPTIONS += mmultiply-enabled/mbarrel-shift-enabled
15 MULTILIB_EXCEPTIONS += mbarrel-shift-enabled/mdivide-enabled/msign-extend-enabled
16 MULTILIB_EXCEPTIONS += mbarrel-shift-enabled/mdivide-enabled
17 MULTILIB_EXCEPTIONS += mbarrel-shift-enabled/msign-extend-enabled
18 # MULTILIB_EXCEPTIONS += mbarrel-shift-enabled
/netbsd/src/external/gpl3/gcc/dist/libgcc/config/libbid/
Dbid128_round_integral.c43 int q, ind, shift; variable
294 shift = shiftright128[ind - 1]; // 3 <= shift <= 63
295 res.w[1] = (P256.w[3] >> shift);
296 res.w[0] = (P256.w[3] << (64 - shift)) | (P256.w[2] >> shift);
330 shift = shiftright128[ind - 1] - 64; // 2 <= shift <= 38
332 res.w[0] = P256.w[3] >> shift;
444 shift = shiftright128[ind - 1]; // 3 <= shift <= 63
445 res.w[1] = (P256.w[3] >> shift);
446 res.w[0] = (P256.w[3] << (64 - shift)) | (P256.w[2] >> shift);
468 shift = shiftright128[ind - 1] - 64; // 2 <= shift <= 38
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/
Ddata-streamer.cc79 int shift = 0; in bp_unpack_var_len_unsigned() local
85 result |= (half_byte & 0x7) << shift; in bp_unpack_var_len_unsigned()
86 shift += 3; in bp_unpack_var_len_unsigned()
99 int shift = 0; in bp_unpack_var_len_int() local
105 result |= (half_byte & 0x7) << shift; in bp_unpack_var_len_int()
106 shift += 3; in bp_unpack_var_len_int()
109 if ((shift < HOST_BITS_PER_WIDE_INT) && (half_byte & 0x4)) in bp_unpack_var_len_int()
110 result |= - (HOST_WIDE_INT_1U << shift); in bp_unpack_var_len_int()
/netbsd/src/external/gpl3/gdb/dist/include/
Dleb128.h58 unsigned int shift = 0; in read_uleb128_to_uint64() local
68 result |= ((uint64_t) (byte & 0x7f)) << shift; in read_uleb128_to_uint64()
71 shift += 7; in read_uleb128_to_uint64()
91 unsigned int shift = 0; in read_sleb128_to_int64() local
101 result |= ((uint64_t) (byte & 0x7f)) << shift; in read_sleb128_to_int64()
102 shift += 7; in read_sleb128_to_int64()
106 if (shift < (sizeof (*r) * 8) && (byte & 0x40) != 0) in read_sleb128_to_int64()
107 result |= -(((uint64_t) 1) << shift); in read_sleb128_to_int64()
/netbsd/src/external/gpl3/gcc/dist/include/
Dleb128.h58 unsigned int shift = 0; in read_uleb128_to_uint64() local
68 result |= ((uint64_t) (byte & 0x7f)) << shift; in read_uleb128_to_uint64()
71 shift += 7; in read_uleb128_to_uint64()
91 unsigned int shift = 0; in read_sleb128_to_int64() local
101 result |= ((uint64_t) (byte & 0x7f)) << shift; in read_sleb128_to_int64()
102 shift += 7; in read_sleb128_to_int64()
106 if (shift < (sizeof (*r) * 8) && (byte & 0x40) != 0) in read_sleb128_to_int64()
107 result |= -(((uint64_t) 1) << shift); in read_sleb128_to_int64()
/netbsd/src/external/gpl3/binutils/dist/include/
Dleb128.h58 unsigned int shift = 0; in read_uleb128_to_uint64() local
68 result |= ((uint64_t) (byte & 0x7f)) << shift; in read_uleb128_to_uint64()
71 shift += 7; in read_uleb128_to_uint64()
91 unsigned int shift = 0; in read_sleb128_to_int64() local
101 result |= ((uint64_t) (byte & 0x7f)) << shift; in read_sleb128_to_int64()
102 shift += 7; in read_sleb128_to_int64()
106 if (shift < (sizeof (*r) * 8) && (byte & 0x40) != 0) in read_sleb128_to_int64()
107 result |= -(((uint64_t) 1) << shift); in read_sleb128_to_int64()
/netbsd/src/external/gpl3/binutils/dist/gold/
Dint_encoding.cc44 unsigned int shift = 7; in read_unsigned_LEB_128_x() local
56 result |= (static_cast<uint64_t>(byte & 0x7f)) << shift; in read_unsigned_LEB_128_x()
57 shift += 7; in read_unsigned_LEB_128_x()
76 int shift = 7; in read_signed_LEB_128_x() local
89 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); in read_signed_LEB_128_x()
90 shift += 7; in read_signed_LEB_128_x()
94 if ((shift < 8 * static_cast<int>(sizeof(result))) && (byte & 0x40)) in read_signed_LEB_128_x()
95 result |= -((static_cast<int64_t>(1)) << shift); in read_signed_LEB_128_x()
/netbsd/src/common/lib/libc/quad/
Dashldi3.c52 __ashldi3(quad_t a, qshift_t shift) in __ashldi3() argument
56 if (shift == 0) in __ashldi3()
59 if (shift >= INT_BITS) { in __ashldi3()
60 aa.ul[H] = aa.ul[L] << (unsigned int)(shift - INT_BITS); in __ashldi3()
63 aa.ul[H] = (aa.ul[H] << shift) | in __ashldi3()
64 (aa.ul[L] >> (INT_BITS - shift)); in __ashldi3()
65 aa.ul[L] <<= shift; in __ashldi3()
Dlshldi3.c54 __lshldi3(quad_t a, qshift_t shift) in ARM_EABI_ALIAS()
58 if (shift == 0) in ARM_EABI_ALIAS()
61 if (shift >= INT_BITS) { in ARM_EABI_ALIAS()
62 aa.ul[H] = aa.ul[L] << (unsigned int)(shift - INT_BITS); in ARM_EABI_ALIAS()
65 aa.ul[H] = (aa.ul[H] << shift) | in ARM_EABI_ALIAS()
66 (aa.ul[L] >> (INT_BITS - shift)); in ARM_EABI_ALIAS()
67 aa.ul[L] <<= shift; in ARM_EABI_ALIAS()
Dlshrdi3.c53 __lshrdi3(quad_t a, qshift_t shift) in ARM_EABI_ALIAS()
57 if (shift == 0) in ARM_EABI_ALIAS()
60 if (shift >= INT_BITS) { in ARM_EABI_ALIAS()
61 aa.ul[L] = aa.ul[H] >> (shift - INT_BITS); in ARM_EABI_ALIAS()
64 aa.ul[L] = (aa.ul[L] >> shift) | in ARM_EABI_ALIAS()
65 (aa.ul[H] << (unsigned int)(INT_BITS - shift)); in ARM_EABI_ALIAS()
66 aa.ul[H] >>= shift; in ARM_EABI_ALIAS()

12345678910>>...55