Home
last modified time | relevance | path

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

12345678910>>...18

/dflybsd-src/sys/dev/drm/include/drm/
H A Ddrm_fixed.h99 unsigned shift, sign = (a >> 63) & 1; in drm_fixp_msbset() local
101 for (shift = 62; shift > 0; --shift) in drm_fixp_msbset()
102 if (((a >> shift) & 1) != sign) in drm_fixp_msbset()
103 return shift; in drm_fixp_msbset()
110 unsigned shift = drm_fixp_msbset(a) + drm_fixp_msbset(b); in drm_fixp_mul() local
113 if (shift > 61) { in drm_fixp_mul()
114 shift = shift - 61; in drm_fixp_mul()
115 a >>= (shift >> 1) + (shift & 1); in drm_fixp_mul()
116 b >>= shift >> 1; in drm_fixp_mul()
118 shift = 0; in drm_fixp_mul()
[all …]
/dflybsd-src/contrib/gmp/mpn/generic/
H A Dtoom_eval_pm2exp.c33 mp_srcptr xp, mp_size_t n, mp_size_t hn, unsigned shift, in mpn_toom_eval_pm2exp() argument
43 ASSERT (shift*k < GMP_NUMB_BITS); in mpn_toom_eval_pm2exp()
52 xp2[n] = mpn_addlsh_n (xp2, xp, xp + 2*n, n, 2*shift); in mpn_toom_eval_pm2exp()
54 xp2[n] += mpn_addlsh_n (xp2, xp2, xp + i*n, n, i*shift); in mpn_toom_eval_pm2exp()
56 tp[n] = mpn_lshift (tp, xp+n, n, shift); in mpn_toom_eval_pm2exp()
58 tp[n] += mpn_addlsh_n (tp, tp, xp+i*n, n, i*shift); in mpn_toom_eval_pm2exp()
62 cy = mpn_addlsh_n (tp, tp, xp+k*n, hn, k*shift); in mpn_toom_eval_pm2exp()
67 cy = mpn_addlsh_n (xp2, xp2, xp+k*n, hn, k*shift); in mpn_toom_eval_pm2exp()
72 xp2[n] = mpn_lshift (tp, xp+2*n, n, 2*shift); in mpn_toom_eval_pm2exp()
76 xp2[n] += mpn_lshift (tp, xp + i*n, n, i*shift); in mpn_toom_eval_pm2exp()
[all …]
H A Dpre_divrem_1.c53 mp_limb_t dinv, int shift) in mpn_preinv_divrem_1() argument
68 ASSERT (shift == want_shift); in mpn_preinv_divrem_1()
69 invert_limb (want_dinv, d_unnorm << shift); in mpn_preinv_divrem_1()
77 d = d_unnorm << shift; in mpn_preinv_divrem_1()
80 if (shift == 0) in mpn_preinv_divrem_1()
101 r = ahigh << shift; in mpn_preinv_divrem_1()
109 r |= n1 >> (GMP_LIMB_BITS - shift); in mpn_preinv_divrem_1()
116 ((n1 << shift) | (n0 >> (GMP_LIMB_BITS - shift))), in mpn_preinv_divrem_1()
121 udiv_qrnnd_preinv (*qp, r, r, n1 << shift, d, dinv); in mpn_preinv_divrem_1()
132 return r >> shift; in mpn_preinv_divrem_1()
H A Dbdiv_q_1.c31 mp_limb_t di, int shift) in mpn_pi1_bdiv_q_1() argument
44 if (shift != 0) in mpn_pi1_bdiv_q_1()
53 u = ((u >> shift) | (u_next << (GMP_NUMB_BITS-shift))) & GMP_NUMB_MASK; in mpn_pi1_bdiv_q_1()
65 u = u >> shift; in mpn_pi1_bdiv_q_1()
97 int shift; in mpn_bdiv_q_1() local
107 count_trailing_zeros (shift, d); in mpn_bdiv_q_1()
108 d >>= shift; in mpn_bdiv_q_1()
111 shift = 0; in mpn_bdiv_q_1()
114 return mpn_pi1_bdiv_q_1 (rp, up, n, d, di, shift); in mpn_bdiv_q_1()
H A Dgcdext_lehmer.c77 int shift; in mpn_gcdext_lehmer_n() local
79 count_leading_zeros (shift, mask); in mpn_gcdext_lehmer_n()
80 ah = MPN_EXTRACT_NUMB (shift, ap[1], ap[0]); in mpn_gcdext_lehmer_n()
81 al = ap[0] << shift; in mpn_gcdext_lehmer_n()
82 bh = MPN_EXTRACT_NUMB (shift, bp[1], bp[0]); in mpn_gcdext_lehmer_n()
83 bl = bp[0] << shift; in mpn_gcdext_lehmer_n()
87 int shift; in mpn_gcdext_lehmer_n() local
89 count_leading_zeros (shift, mask); in mpn_gcdext_lehmer_n()
90 ah = MPN_EXTRACT_NUMB (shift, ap[n-1], ap[n-2]); in mpn_gcdext_lehmer_n()
91 al = MPN_EXTRACT_NUMB (shift, ap[n-2], ap[n-3]); in mpn_gcdext_lehmer_n()
[all …]
H A Ddive_1.c71 unsigned shift; in mpn_divexact_1() local
89 count_trailing_zeros (shift, divisor); in mpn_divexact_1()
90 divisor >>= shift; in mpn_divexact_1()
93 shift = 0; in mpn_divexact_1()
98 if (shift != 0) in mpn_divexact_1()
107 ls = ((s >> shift) | (s_next << (GMP_NUMB_BITS-shift))) & GMP_NUMB_MASK; in mpn_divexact_1()
122 ls = s >> shift; in mpn_divexact_1()
H A Dgcdext_1.c69 unsigned shift; in mpn_gcdext_1() local
84 count_trailing_zeros (shift, u); in mpn_gcdext_1()
85 u >>= shift; in mpn_gcdext_1()
86 t1 <<= shift; in mpn_gcdext_1()
90 count_trailing_zeros (shift, v); in mpn_gcdext_1()
91 v >>= shift; in mpn_gcdext_1()
92 s0 <<= shift; in mpn_gcdext_1()
95 shift = 0; in mpn_gcdext_1()
149 shift += count; in mpn_gcdext_1()
216 shift += count; in mpn_gcdext_1()
[all …]
H A Djacbase.c74 int two, mask, shift; \
80 shift = (~a & 1); \
81 a >>= shift; \
93 int two, mask, shift; \
96 shift = (~a & 1); \
97 a >>= shift; \
99 mask = shift << 1; \
/dflybsd-src/contrib/openbsd_libm/src/
H A Ds_lround.c51 int e, s, shift; in LROUNDNAME() local
77 shift = e - DBL_FRACBITS; in LROUNDNAME()
78 if (shift >=0) in LROUNDNAME()
79 res = (shift < RESTYPE_BITS ? (RESTYPE)i1 << shift : 0); in LROUNDNAME()
81 res = (shift > -RESTYPE_BITS ? (RESTYPE)i1 >> -shift : 0); in LROUNDNAME()
82 shift += 32; in LROUNDNAME()
83 if (shift >=0) in LROUNDNAME()
84 res |= (shift < RESTYPE_BITS ? (RESTYPE)i0 << shift : 0); in LROUNDNAME()
86 res |= (shift > -RESTYPE_BITS ? (RESTYPE)i0 >> -shift : 0); in LROUNDNAME()
H A Ds_lrint.c58 int e, s, shift; in LRINTNAME() local
87 shift = e - DBL_FRACBITS; in LRINTNAME()
88 if (shift >=0) in LRINTNAME()
89 res = (shift < RESTYPE_BITS ? (RESTYPE)i1 << shift : 0); in LRINTNAME()
91 res = (shift > -RESTYPE_BITS ? (RESTYPE)i1 >> -shift : 0); in LRINTNAME()
92 shift += 32; in LRINTNAME()
93 if (shift >=0) in LRINTNAME()
94 res |= (shift < RESTYPE_BITS ? (RESTYPE)i0 << shift : 0); in LRINTNAME()
96 res |= (shift > -RESTYPE_BITS ? (RESTYPE)i0 >> -shift : 0); in LRINTNAME()
H A Ds_lroundf.c50 int e, s, shift; in LROUNDNAME() local
76 shift = e - SNG_FRACBITS; in LROUNDNAME()
77 if (shift >=0) in LROUNDNAME()
78 res = (shift < RESTYPE_BITS ? (RESTYPE)i0 << shift : 0); in LROUNDNAME()
80 res = (shift > -RESTYPE_BITS ? (RESTYPE)i0 >> -shift : 0); in LROUNDNAME()
H A Ds_lrintf.c56 int e, s, shift; in LRINTNAME() local
85 shift = e - SNG_FRACBITS; in LRINTNAME()
86 if (shift >=0) in LRINTNAME()
87 res = (shift < RESTYPE_BITS ? (RESTYPE)i0 << shift : 0); in LRINTNAME()
89 res = (shift > -RESTYPE_BITS ? (RESTYPE)i0 >> -shift : 0); in LRINTNAME()
/dflybsd-src/tools/regression/bin/sh/parameters/
H A Dpositional8.022 testcase 'shift $#; set -- ""$*' '1|'
23 testcase 'shift $#; set -- $*""' '1|'
24 testcase 'shift $#; set -- ""$@' '1|'
25 testcase 'shift $#; set -- $@""' '1|'
26 testcase 'shift $#; set -- """$*"' '1|'
27 testcase 'shift $#; set -- "$*"""' '1|'
28 testcase 'shift $#; set -- """$@"' '1|'
29 testcase 'shift $#; set -- "$@"""' '1|'
/dflybsd-src/contrib/gdb-7/include/
H A 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()
/dflybsd-src/contrib/binutils-2.27/include/
H A 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()
/dflybsd-src/contrib/gcc-4.7/gcc/
H A Ddata-streamer.c75 int shift = 0; in bp_unpack_var_len_unsigned() local
81 result |= (half_byte & 0x7) << shift; in bp_unpack_var_len_unsigned()
82 shift += 3; in bp_unpack_var_len_unsigned()
95 int shift = 0; in bp_unpack_var_len_int() local
101 result |= (half_byte & 0x7) << shift; in bp_unpack_var_len_int()
102 shift += 3; in bp_unpack_var_len_int()
105 if ((shift < HOST_BITS_PER_WIDE_INT) && (half_byte & 0x4)) in bp_unpack_var_len_int()
106 result |= - ((HOST_WIDE_INT)1 << shift); in bp_unpack_var_len_int()
H A Ddata-streamer-in.c95 int shift = 0; in streamer_read_uhwi() local
101 result |= (byte & 0x7f) << shift; in streamer_read_uhwi()
102 shift += 7; in streamer_read_uhwi()
115 int shift = 0; in streamer_read_hwi() local
121 result |= (byte & 0x7f) << shift; in streamer_read_hwi()
122 shift += 7; in streamer_read_hwi()
125 if ((shift < HOST_BITS_PER_WIDE_INT) && (byte & 0x40)) in streamer_read_hwi()
126 result |= - ((HOST_WIDE_INT)1 << shift); in streamer_read_hwi()
/dflybsd-src/contrib/gcc-8.0/gcc/
H A Ddata-streamer.c79 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()
H A Dsreal.h93 sreal shift (int s) const in shift() function
189 return a.shift (exp);
194 return a.shift (-exp);
205 int shift = SREAL_PART_BITS - 2 - floor_log2 (sig); in normalize_up() local
207 gcc_checking_assert (shift > 0); in normalize_up()
208 sig <<= shift; in normalize_up()
209 m_exp -= shift; in normalize_up()
233 int shift = floor_log2 (sig) - SREAL_PART_BITS + 2; in normalize_down() local
235 gcc_checking_assert (shift > 0); in normalize_down()
236 last_bit = (sig >> (shift-1)) & 1; in normalize_down()
[all …]
H A Ddata-streamer-in.c125 int shift; in streamer_read_uhwi() local
135 shift = 7; in streamer_read_uhwi()
139 result |= (byte & 0x7f) << shift; in streamer_read_uhwi()
140 shift += 7; in streamer_read_uhwi()
160 int shift = 0; in streamer_read_hwi() local
166 result |= (byte & 0x7f) << shift; in streamer_read_hwi()
167 shift += 7; in streamer_read_hwi()
170 if ((shift < HOST_BITS_PER_WIDE_INT) && (byte & 0x40)) in streamer_read_hwi()
171 result |= - (HOST_WIDE_INT_1U << shift); in streamer_read_hwi()
/dflybsd-src/contrib/binutils-2.27/gold/
H A 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()
/dflybsd-src/contrib/binutils-2.34/gold/
H A 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()
/dflybsd-src/contrib/ncurses/ncurses/tty/
H A Dhashmap.c222 int shift = OLDNUM(sp, i) - i; in grow_hunks() local
228 && OLDNUM(sp, i) - i == shift) in grow_hunks()
242 if (shift < 0) in grow_hunks()
243 back_limit = back_ref_limit + (-shift); in grow_hunks()
245 if (newhash(sp)[i] == oldhash(sp)[i + shift] in grow_hunks()
246 || cost_effective(sp, i + shift, i, shift < 0)) { in grow_hunks()
247 OLDNUM(sp, i) = i + shift; in grow_hunks()
250 i, i + shift)); in grow_hunks()
254 i, i + shift)); in grow_hunks()
262 if (shift > 0) in grow_hunks()
[all …]
H A Dhardscroll.c190 int start, end, shift; in NCURSES_SP_NAME() local
232 shift = OLDNUM(SP_PARM, i) - i; /* shift > 0 */ in NCURSES_SP_NAME()
238 && OLDNUM(SP_PARM, i) - i == shift) in NCURSES_SP_NAME()
240 end = i - 1 + shift; in NCURSES_SP_NAME()
242 TR(TRACE_UPDATE | TRACE_MOVE, ("scroll [%d, %d] by %d", start, end, shift)); in NCURSES_SP_NAME()
245 shift, in NCURSES_SP_NAME()
265 shift = OLDNUM(SP_PARM, i) - i; /* shift < 0 */ in NCURSES_SP_NAME()
271 && OLDNUM(SP_PARM, i) - i == shift) { in NCURSES_SP_NAME()
274 start = i + 1 - (-shift); in NCURSES_SP_NAME()
276 TR(TRACE_UPDATE | TRACE_MOVE, ("scroll [%d, %d] by %d", start, end, shift)); in NCURSES_SP_NAME()
[all …]
/dflybsd-src/sys/platform/pc64/x86_64/
H A Dmp_machdep.c396 int shift; in start_all_aps() local
546 for (shift = 0; (1 << shift) <= ncpus; ++shift) in start_all_aps()
548 --shift; in start_all_aps()
551 if ((1 << shift) < ncpus) in start_all_aps()
552 ++shift; in start_all_aps()
553 ncpus_fit = 1 << shift; in start_all_aps()
1699 int shift = 0; in detect_intel_topology() local
1715 for (shift = 0; (1 << shift) < count_htt_cores; ++shift) in detect_intel_topology()
1717 logical_CPU_bits = 1 << shift; in detect_intel_topology()
1756 for (shift = 0; (1 << shift) < logical_per_core; ++shift) in detect_intel_topology()
[all …]

12345678910>>...18