Home
last modified time | relevance | path

Searched refs:BITS_PER_MP_LIMB (Results 1 – 25 of 34) sorted by relevance

12

/glibc-2.36/stdlib/
Dstrtod_l.c150 #if BITS_PER_MP_LIMB == 32
153 #elif BITS_PER_MP_LIMB == 64
157 # error "mp_limb_t size " BITS_PER_MP_LIMB "not accounted for"
167 #define RETURN_LIMB_SIZE howmany (MANT_DIG, BITS_PER_MP_LIMB)
178 BITS_PER_MP_LIMB) + 2)
234 round_bit = (MANT_DIG - 1) % BITS_PER_MP_LIMB; in round_and_return()
239 else if (shift >= BITS_PER_MP_LIMB) in round_and_return()
243 round_limb = retval[(shift - 1) / BITS_PER_MP_LIMB]; in round_and_return()
244 round_bit = (shift - 1) % BITS_PER_MP_LIMB; in round_and_return()
245 for (i = 0; i < (shift - 1) / BITS_PER_MP_LIMB; ++i) in round_and_return()
[all …]
Dtens_in_limb.c5 #if BITS_PER_MP_LIMB == 32
8 #elif BITS_PER_MP_LIMB == 64
12 # error "mp_limb_t size " BITS_PER_MP_LIMB "not accounted for"
22 #if BITS_PER_MP_LIMB > 32
28 #if BITS_PER_MP_LIMB > 64
Dmod_1.c82 r = n1 >> (BITS_PER_MP_LIMB - normalization_steps); in mpn_mod_1()
95 | (n0 >> (BITS_PER_MP_LIMB - normalization_steps))), in mpn_mod_1()
148 r = n1 >> (BITS_PER_MP_LIMB - normalization_steps); in mpn_mod_1()
161 | (n0 >> (BITS_PER_MP_LIMB - normalization_steps))), in mpn_mod_1()
Ddivmod_1.c86 r = n1 >> (BITS_PER_MP_LIMB - normalization_steps); in mpn_divmod_1()
99 | (n0 >> (BITS_PER_MP_LIMB - normalization_steps))), in mpn_divmod_1()
155 r = n1 >> (BITS_PER_MP_LIMB - normalization_steps); in mpn_divmod_1()
168 | (n0 >> (BITS_PER_MP_LIMB - normalization_steps))), in mpn_divmod_1()
Dgmp-impl.h245 n2 = ((nh) << (BITS_PER_MP_LIMB - (lgup))) + ((nl) >> 1 >> (l - 1));\
246 n10 = (nl) << (BITS_PER_MP_LIMB - (lgup)); \
247 n1 = ((mp_limb_signed_t) n10 >> (BITS_PER_MP_LIMB - 1)); \
266 n1 = ((mp_limb_signed_t) n10 >> (BITS_PER_MP_LIMB - 1)); \
293 #define W_TYPE_SIZE BITS_PER_MP_LIMB
Dfpioconst.c30 #if BITS_PER_MP_LIMB == 32
665 #elif BITS_PER_MP_LIMB == 64
1304 # error "mp_limb_t size " BITS_PER_MP_LIMB "not accounted for"
Dfpioconst.h81 #if BITS_PER_MP_LIMB == 32
/glibc-2.36/sysdeps/ieee754/ldbl-128/
Dldbl2mpn.c43 #if BITS_PER_MP_LIMB == 32 in __mpn_extract_long_double()
49 #elif BITS_PER_MP_LIMB == 64 in __mpn_extract_long_double()
56 #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_extract_long_double()
59 #define NUM_LEADING_ZEROS (BITS_PER_MP_LIMB \ in __mpn_extract_long_double()
60 - (LDBL_MANT_DIG - ((N - 1) * BITS_PER_MP_LIMB))) in __mpn_extract_long_double()
82 | (res_ptr[0] >> (BITS_PER_MP_LIMB - cnt)); in __mpn_extract_long_double()
97 res_ptr[0] <<= BITS_PER_MP_LIMB - (NUM_LEADING_ZEROS - cnt); in __mpn_extract_long_double()
100 - (BITS_PER_MP_LIMB - NUM_LEADING_ZEROS) - cnt; in __mpn_extract_long_double()
114 cnt += BITS_PER_MP_LIMB; in __mpn_extract_long_double()
124 | res_ptr[k-l-1] >> (BITS_PER_MP_LIMB - cnt); in __mpn_extract_long_double()
[all …]
Dmpn2ldbl.c35 #if BITS_PER_MP_LIMB == 32 in __mpn_construct_long_double()
41 #elif BITS_PER_MP_LIMB == 64 in __mpn_construct_long_double()
48 #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_construct_long_double()
/glibc-2.36/sysdeps/ieee754/ldbl-128ibm/
Dldbl2mpn.c97 #if BITS_PER_MP_LIMB == 32 in __mpn_extract_long_double()
104 #elif BITS_PER_MP_LIMB == 64 in __mpn_extract_long_double()
110 #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_extract_long_double()
113 #define NUM_LEADING_ZEROS (BITS_PER_MP_LIMB \ in __mpn_extract_long_double()
114 - (LDBL_MANT_DIG - ((N - 1) * BITS_PER_MP_LIMB))) in __mpn_extract_long_double()
139 | (res_ptr[0] >> (BITS_PER_MP_LIMB - cnt)); in __mpn_extract_long_double()
154 res_ptr[0] <<= BITS_PER_MP_LIMB - (NUM_LEADING_ZEROS - cnt); in __mpn_extract_long_double()
157 - (BITS_PER_MP_LIMB - NUM_LEADING_ZEROS) - cnt; in __mpn_extract_long_double()
171 cnt += BITS_PER_MP_LIMB; in __mpn_extract_long_double()
181 | res_ptr[k-l-1] >> (BITS_PER_MP_LIMB - cnt); in __mpn_extract_long_double()
[all …]
Dmpn2ldbl.c44 #if BITS_PER_MP_LIMB == 32 in __mpn_construct_long_double()
52 #elif BITS_PER_MP_LIMB == 64 in __mpn_construct_long_double()
59 #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_construct_long_double()
/glibc-2.36/sysdeps/ieee754/dbl-64/
Ddbl2mpn.c40 #if BITS_PER_MP_LIMB == 32 in __mpn_extract_double()
44 #elif BITS_PER_MP_LIMB == 64 in __mpn_extract_double()
50 # error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_extract_double()
53 #define NUM_LEADING_ZEROS (BITS_PER_MP_LIMB \ in __mpn_extract_double()
54 - (DBL_MANT_DIG - ((N - 1) * BITS_PER_MP_LIMB))) in __mpn_extract_double()
76 * (res_ptr[0] >> (BITS_PER_MP_LIMB - cnt)); in __mpn_extract_double()
94 res_ptr[0] <<= BITS_PER_MP_LIMB - (NUM_LEADING_ZEROS - cnt); in __mpn_extract_double()
97 - (BITS_PER_MP_LIMB - NUM_LEADING_ZEROS) - cnt; in __mpn_extract_double()
104 - ((N - 1) * BITS_PER_MP_LIMB)); in __mpn_extract_double()
Dmpn2dbl.c34 #if BITS_PER_MP_LIMB == 32 in __mpn_construct_double()
38 #elif BITS_PER_MP_LIMB == 64 in __mpn_construct_double()
43 # error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_construct_double()
/glibc-2.36/stdio-common/
Dprintf_fp.c250 mp_limb_t fp_input[(GREATER_MANT_DIG + BITS_PER_MP_LIMB - 1) in __printf_fp_l()
251 / BITS_PER_MP_LIMB]; in __printf_fp_l()
381 to_shift = 1 + p.fracsize * BITS_PER_MP_LIMB - MANT_DIG; \ in __printf_fp_l()
432 mp_size_t bignum_size = ((abs (p.exponent) + BITS_PER_MP_LIMB - 1) in __printf_fp_l()
433 / BITS_PER_MP_LIMB in __printf_fp_l()
434 + (GREATER_MANT_DIG / BITS_PER_MP_LIMB > 2 in __printf_fp_l()
463 if ((p.exponent + to_shift) % BITS_PER_MP_LIMB == 0) in __printf_fp_l()
465 MPN_COPY_DECR (p.frac + (p.exponent + to_shift) / BITS_PER_MP_LIMB, in __printf_fp_l()
467 p.fracsize += (p.exponent + to_shift) / BITS_PER_MP_LIMB; in __printf_fp_l()
472 + (p.exponent + to_shift) / BITS_PER_MP_LIMB, in __printf_fp_l()
[all …]
D_itoa.c54 #if BITS_PER_MP_LIMB == 32
83 # if BITS_PER_MP_LIMB == 64
120 # if BITS_PER_MP_LIMB == 32
206 mp_limb_t work_hi = value >> (64 - BITS_PER_MP_LIMB); \ in _itoa()
208 if (BITS_PER_MP_LIMB == 32) \ in _itoa()
216 for (cnt = BITS_PER_MP_LIMB / BITS; cnt > 0; --cnt) \ in _itoa()
221 if (BITS_PER_MP_LIMB % BITS != 0) \ in _itoa()
225 & ((1 << (BITS - BITS_PER_MP_LIMB%BITS)) \ in _itoa()
227 << BITS_PER_MP_LIMB % BITS); \ in _itoa()
228 work_hi >>= BITS - BITS_PER_MP_LIMB % BITS; \ in _itoa()
[all …]
D_itowa.c54 #if BITS_PER_MP_LIMB == 32
102 mp_limb_t work_hi = value >> (64 - BITS_PER_MP_LIMB); \ in _itowa()
104 if (BITS_PER_MP_LIMB == 32) \ in _itowa()
112 for (cnt = BITS_PER_MP_LIMB / BITS; cnt > 0; --cnt) \ in _itowa()
117 if (BITS_PER_MP_LIMB % BITS != 0) \ in _itowa()
121 & ((1 << (BITS - BITS_PER_MP_LIMB%BITS)) \ in _itowa()
123 << BITS_PER_MP_LIMB % BITS); \ in _itowa()
124 work_hi >>= BITS - BITS_PER_MP_LIMB % BITS; \ in _itowa()
152 # if BITS_PER_MP_LIMB == 64 in _itowa()
179 # if BITS_PER_MP_LIMB == 32 in _itowa()
/glibc-2.36/sysdeps/x86/
Dldbl2mpn.c41 #if BITS_PER_MP_LIMB == 32 in __mpn_extract_long_double()
45 #elif BITS_PER_MP_LIMB == 64 in __mpn_extract_long_double()
51 #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_extract_long_double()
72 res_ptr[N - 1] &= ~((mp_limb_t) 1 << ((LDBL_MANT_DIG - 1) % BITS_PER_MP_LIMB)); in __mpn_extract_long_double()
81 | (res_ptr[0] >> (BITS_PER_MP_LIMB - cnt)); in __mpn_extract_long_double()
94 *expt = LDBL_MIN_EXP - 1 - BITS_PER_MP_LIMB - cnt; in __mpn_extract_long_double()
/glibc-2.36/sysdeps/ieee754/ldbl-96/
Dldbl2mpn.c42 #if BITS_PER_MP_LIMB == 32 in __mpn_extract_long_double()
46 #elif BITS_PER_MP_LIMB == 64 in __mpn_extract_long_double()
52 #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_extract_long_double()
75 | (res_ptr[0] >> (BITS_PER_MP_LIMB - cnt)); in __mpn_extract_long_double()
88 *expt = LDBL_MIN_EXP - 1 - BITS_PER_MP_LIMB - cnt; in __mpn_extract_long_double()
Dmpn2ldbl.c35 #if BITS_PER_MP_LIMB == 32 in __mpn_construct_long_double()
38 #elif BITS_PER_MP_LIMB == 64 in __mpn_construct_long_double()
42 #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_construct_long_double()
/glibc-2.36/sysdeps/ieee754/float128/
Dmpn2float128.c37 #if BITS_PER_MP_LIMB == 32 in __mpn_construct_float128()
43 #elif BITS_PER_MP_LIMB == 64 in __mpn_construct_float128()
50 #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_construct_float128()
/glibc-2.36/sysdeps/ieee754/flt-32/
Dmpn2flt.c34 #if BITS_PER_MP_LIMB > FLT_MANT_DIG in __mpn_construct_float()
37 #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for" in __mpn_construct_float()
/glibc-2.36/sysdeps/generic/
Dgmp-mparam.h22 #define BITS_PER_MP_LIMB __WORDSIZE macro
/glibc-2.36/sysdeps/x86_64/x32/
Dgmp-mparam.h26 #define BITS_PER_MP_LIMB 64 macro
/glibc-2.36/sysdeps/mips/mips64/
Dgmp-mparam.h25 #define BITS_PER_MP_LIMB 64 macro
/glibc-2.36/math/
Datest-exp2.c36 #if BITS_PER_MP_LIMB == 64
38 #elif BITS_PER_MP_LIMB == 32

12