Lines Matching refs:GMP_LIMB_BITS

325 # define GMP_LIMB_BITS 32  macro
326 verify (sizeof (mp_limb_t) * CHAR_BIT == GMP_LIMB_BITS);
394 carry = carry >> GMP_LIMB_BITS; in multiply()
528 ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; in divide()
561 if (GMP_LIMB_BITS <= DBL_MANT_BIT) in divide()
574 s = GMP_LIMB_BITS in divide()
630 accu = accu >> GMP_LIMB_BITS; in divide()
658 accu = accu >> GMP_LIMB_BITS; in divide()
669 ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; in divide()
680 ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) in divide()
707 ((mp_twolimb_t) c1 << GMP_LIMB_BITS) | r_ptr[j + b_len - 2]; in divide()
740 carry = carry >> GMP_LIMB_BITS; /* <= q* */ in divide()
791 accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; in divide()
792 accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); in divide()
793 *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); in divide()
809 (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) in divide()
851 size_t c_len = 9 * ((size_t)(a_len * (GMP_LIMB_BITS * 0.03345f)) + 1); in convert_to_decimal()
867 ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; in convert_to_decimal()
908 m.nlimbs = (LDBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; in decode_long_double()
923 # if (LDBL_MANT_BIT % GMP_LIMB_BITS) != 0 in decode_long_double()
924 # if (LDBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 in decode_long_double()
927 y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % (GMP_LIMB_BITS / 2)); in decode_long_double()
932 y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); in decode_long_double()
937 m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; in decode_long_double()
942 y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % GMP_LIMB_BITS); in decode_long_double()
947 m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = d; in decode_long_double()
951 for (i = LDBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) in decode_long_double()
954 y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); in decode_long_double()
959 y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); in decode_long_double()
964 m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; in decode_long_double()
996 m.nlimbs = (DBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; in decode_double()
1011 # if (DBL_MANT_BIT % GMP_LIMB_BITS) != 0 in decode_double()
1012 # if (DBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 in decode_double()
1015 y *= (mp_limb_t) 1 << (DBL_MANT_BIT % (GMP_LIMB_BITS / 2)); in decode_double()
1020 y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); in decode_double()
1025 m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; in decode_double()
1030 y *= (mp_limb_t) 1 << (DBL_MANT_BIT % GMP_LIMB_BITS); in decode_double()
1035 m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = d; in decode_double()
1039 for (i = DBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) in decode_double()
1042 y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); in decode_double()
1047 y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); in decode_double()
1052 m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; in decode_double()
1108 pow5_ptr = (mp_limb_t *) malloc (((int)(abs_n * (2.322f / GMP_LIMB_BITS)) + 1 in scale10_round_decimal_decoded()
1109 + abs_s / GMP_LIMB_BITS + 1) in scale10_round_decimal_decoded()
1138 carry = carry >> GMP_LIMB_BITS; in scale10_round_decimal_decoded()
1144 s_limbs = abs_s / GMP_LIMB_BITS; in scale10_round_decimal_decoded()
1145 s_bits = abs_s % GMP_LIMB_BITS; in scale10_round_decimal_decoded()
1158 accu = accu >> GMP_LIMB_BITS; in scale10_round_decimal_decoded()
1255 accu = accu >> GMP_LIMB_BITS; in scale10_round_decimal_decoded()
1343 while (y < (1.0L / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) in floorlog10l()
1345 y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); in floorlog10l()
1346 exp -= GMP_LIMB_BITS; in floorlog10l()
1434 while (y < (1.0 / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) in floorlog10()
1436 y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); in floorlog10()
1437 exp -= GMP_LIMB_BITS; in floorlog10()