/glibc-2.36/sysdeps/ieee754/ldbl-128ibm/ |
D | s_fromfpl_main.c | 27 #define MANT_DIG 53 macro 55 int hi_exponent = hx >> (MANT_DIG - 1); in FUNC() 58 hx &= ((1ULL << (MANT_DIG - 1)) - 1); in FUNC() 64 int lo_exponent = lx >> (MANT_DIG - 1); in FUNC() 68 hx |= 1ULL << (MANT_DIG - 1); in FUNC() 71 if (hi_exponent >= MANT_DIG - 1) in FUNC() 74 uret <<= hi_exponent - (MANT_DIG - 1); in FUNC() 80 uint64_t h = 1ULL << (MANT_DIG - 2 - hi_exponent); in FUNC() 83 uret = hx >> (MANT_DIG - 1 - hi_exponent); in FUNC() 97 lx &= ((1ULL << (MANT_DIG - 1)) - 1); in FUNC() [all …]
|
/glibc-2.36/math/ |
D | libm-test-scalbn.inc | 46 …TEST_fi_f (scalbn, min_subnorm_value, MANT_DIG - 1, min_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGE… 47 …TEST_fi_f (scalbn, -min_subnorm_value, MANT_DIG - 1, -min_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHAN… 49 …TEST_fi_f (scalbn, min_value, -MANT_DIG + 1, min_subnorm_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANG… 50 …TEST_fi_f (scalbn, -min_value, -MANT_DIG + 1, -min_subnorm_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHA… 51 …TEST_fi_f (scalbn, min_value, -MANT_DIG, plus_uflow, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|ERRNO_P… 52 …TEST_fi_f (scalbn, -min_value, -MANT_DIG, minus_uflow, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|ERRNO… 53 …TEST_fi_f (scalbn, min_value, -MANT_DIG - 1, plus_uflow, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|ERR… 54 …TEST_fi_f (scalbn, -min_value, -MANT_DIG - 1, minus_uflow, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|E… 55 …TEST_fi_f (scalbn, min_value * 1.5, -MANT_DIG + 1, min_subnorm_value, INEXACT_EXCEPTION|UNDERFLOW_… 56 …TEST_fi_f (scalbn, -min_value * 1.5, -MANT_DIG + 1, -min_subnorm_value * 2, INEXACT_EXCEPTION|UNDE… [all …]
|
D | gen-fromfp-tests-inputs | 42 #if MANT_DIG >= 53 50 #if MANT_DIG >= 53 58 #if MANT_DIG >= 53 66 #if MANT_DIG >= 64 74 #if MANT_DIG >= 64 82 #if MANT_DIG >= 64 90 #if MANT_DIG >= 53 110 #if MANT_DIG >= 53 114 #if MANT_DIG >= 64 118 #if MANT_DIG >= 106 [all …]
|
D | libm-test-support.h | 79 #define MANT_DIG __CONCATX (PREFIX, _MANT_DIG) macro 89 #define TEST_COND_binary32 (MANT_DIG == 24 \ 93 #define TEST_COND_binary64 (MANT_DIG == 53 \ 97 #define TEST_COND_binary128 (MANT_DIG == 113 \ 101 #define TEST_COND_ibm128 (MANT_DIG == 106) 105 #define TEST_COND_intel96 (MANT_DIG == 64 \ 109 #define TEST_COND_m68k96 (MANT_DIG == 64 \ 142 # define PAYLOAD_DIG (MANT_DIG - 2)
|
D | libm-test-scalbln.inc | 46 …TEST_fl_f (scalbln, min_subnorm_value, MANT_DIG - 1, min_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANG… 47 …TEST_fl_f (scalbln, -min_subnorm_value, MANT_DIG - 1, -min_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHA… 49 …TEST_fl_f (scalbln, min_value, -MANT_DIG + 1, min_subnorm_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHAN… 50 …TEST_fl_f (scalbln, -min_value, -MANT_DIG + 1, -min_subnorm_value, NO_INEXACT_EXCEPTION|ERRNO_UNCH… 51 …TEST_fl_f (scalbln, min_value, -MANT_DIG, plus_uflow, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|ERRNO_… 52 …TEST_fl_f (scalbln, -min_value, -MANT_DIG, minus_uflow, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|ERRN… 53 …TEST_fl_f (scalbln, min_value, -MANT_DIG - 1, plus_uflow, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|ER… 54 …TEST_fl_f (scalbln, -min_value, -MANT_DIG - 1, minus_uflow, INEXACT_EXCEPTION|UNDERFLOW_EXCEPTION|… 55 …TEST_fl_f (scalbln, min_value * 1.5, -MANT_DIG + 1, min_subnorm_value, INEXACT_EXCEPTION|UNDERFLOW… 56 …TEST_fl_f (scalbln, -min_value * 1.5, -MANT_DIG + 1, -min_subnorm_value * 2, INEXACT_EXCEPTION|UND… [all …]
|
D | test-nan-payload.c | 72 #define CAN_TEST_EQ(MANT_DIG) ((MANT_DIG) != 64 && (MANT_DIG) != 106) argument 74 #define RUN_TESTS(TYPE, SFUNC, FUNC, MANT_DIG) \ argument 93 if (CAN_TEST_EQ (MANT_DIG)) \ 95 if (CAN_TEST_EQ (MANT_DIG)) \ 97 if (CAN_TEST_EQ (MANT_DIG)) \ 99 if (CAN_TEST_EQ (MANT_DIG)) \
|
D | libm-test-llround.inc | 52 #if MANT_DIG >= 64 55 #if MANT_DIG >= 106 58 #if MANT_DIG >= 113 69 #if MANT_DIG >= 64 72 #if MANT_DIG >= 106 75 #if MANT_DIG >= 113 82 #if MANT_DIG >= 64 85 # if MANT_DIG > 64 89 # if MANT_DIG >= 106 92 # if MANT_DIG >= 113 [all …]
|
D | libm-test-lround.inc | 69 #if MANT_DIG >= 64 72 #if MANT_DIG >= 106 75 #if MANT_DIG >= 113 96 #if MANT_DIG >= 64 99 #if MANT_DIG >= 106 102 #if MANT_DIG >= 113 117 #if MANT_DIG >= 64 124 # if MANT_DIG > 64 133 # if MANT_DIG >= 106 136 # if MANT_DIG >= 113 [all …]
|
D | libm-test-lrint.inc | 72 # if MANT_DIG >= 64 75 # if MANT_DIG >= 106 78 # if MANT_DIG >= 113 82 # if MANT_DIG >= 64 85 # if MANT_DIG >= 106 88 # if MANT_DIG >= 113 113 # if MANT_DIG >= 64 116 # if MANT_DIG >= 106 119 # if MANT_DIG >= 113 123 # if MANT_DIG >= 64 [all …]
|
D | libm-test-pow.inc | 206 #if MANT_DIG >= 64 208 # if MANT_DIG >= 106 211 # if MANT_DIG >= 113 223 #if MANT_DIG >= 64 226 # if MANT_DIG >= 106 230 # if MANT_DIG >= 113 277 #if MANT_DIG >= 64 279 # if MANT_DIG >= 106 282 # if MANT_DIG >= 113 296 #if MANT_DIG >= 64 [all …]
|
D | libm-test-llrint.inc | 52 #if MANT_DIG >= 64 55 #if MANT_DIG >= 106 58 #if MANT_DIG >= 113 69 #if MANT_DIG >= 64 72 #if MANT_DIG >= 106 75 #if MANT_DIG >= 113 82 #if MANT_DIG >= 64 85 # if MANT_DIG > 64 89 # if MANT_DIG >= 106 92 # if MANT_DIG >= 113 [all …]
|
D | libm-test-logb.inc | 40 TEST_f_f (logb, min_subnorm_value, MIN_EXP-MANT_DIG, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), 41 TEST_f_f (logb, -min_subnorm_value, MIN_EXP-MANT_DIG, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), 58 #if MIN_EXP - MANT_DIG <= -16400 63 #if MANT_DIG >= 57
|
D | libm-test-setpayloadsig.inc | 64 #if MANT_DIG >= 53 67 #if MANT_DIG >= 64 70 #if MANT_DIG >= 106 73 #if MANT_DIG >= 113
|
D | libm-test-trunc.inc | 93 #if MANT_DIG >= 64 101 # if MANT_DIG > 100 113 # if MANT_DIG > 100 125 # if MANT_DIG > 100 140 # if MANT_DIG > 100 165 # if MANT_DIG >= 106
|
D | libm-test-roundeven.inc | 165 #if MANT_DIG >= 53 183 #if MANT_DIG >= 64 201 #if MANT_DIG >= 106 219 #if MANT_DIG >= 113 239 #if MANT_DIG >= 53 283 #if MANT_DIG >= 64 327 #if MANT_DIG >= 106 371 #if MANT_DIG >= 113 417 #if MANT_DIG >= 106 461 #if MANT_DIG >= 113 [all …]
|
D | libm-test-setpayload.inc | 64 #if MANT_DIG >= 53 67 #if MANT_DIG >= 64 70 #if MANT_DIG >= 106 73 #if MANT_DIG >= 113
|
/glibc-2.36/sysdeps/ieee754/flt-32/ |
D | s_fromfpf_main.c | 28 #define MANT_DIG 24 macro 51 int exponent = ix >> (MANT_DIG - 1); in FUNC() 57 ix &= ((1U << (MANT_DIG - 1)) - 1); in FUNC() 58 ix |= 1U << (MANT_DIG - 1); in FUNC() 61 if (exponent >= MANT_DIG - 1) in FUNC() 64 uret <<= exponent - (MANT_DIG - 1); in FUNC() 70 uint32_t h = 1U << (MANT_DIG - 2 - exponent); in FUNC() 73 uret = ix >> (MANT_DIG - 1 - exponent); in FUNC()
|
D | s_roundevenf.c | 28 #define MANT_DIG 24 macro 40 int exponent = ux >> (MANT_DIG - 1); in __roundevenf() 41 if (exponent >= BIAS + MANT_DIG - 1) in __roundevenf() 56 int int_pos = (BIAS + MANT_DIG - 1) - exponent; in __roundevenf()
|
/glibc-2.36/sysdeps/ieee754/dbl-64/ |
D | s_fromfp_main.c | 28 #define MANT_DIG 53 macro 51 int exponent = ix >> (MANT_DIG - 1); in FUNC() 57 ix &= ((1ULL << (MANT_DIG - 1)) - 1); in FUNC() 58 ix |= 1ULL << (MANT_DIG - 1); in FUNC() 61 if (exponent >= MANT_DIG - 1) in FUNC() 64 uret <<= exponent - (MANT_DIG - 1); in FUNC() 70 uint64_t h = 1ULL << (MANT_DIG - 2 - exponent); in FUNC() 73 uret = ix >> (MANT_DIG - 1 - exponent); in FUNC()
|
D | s_roundeven.c | 27 #define MANT_DIG 53 macro 39 int exponent = ux >> (MANT_DIG - 1); in __roundeven() 40 if (exponent >= BIAS + MANT_DIG - 1) in __roundeven() 55 int int_pos = (BIAS + MANT_DIG - 1) - exponent; in __roundeven()
|
/glibc-2.36/stdlib/ |
D | strtod_l.c | 132 #define MANT_DIG PASTE(FLT,_MANT_DIG) macro 167 #define RETURN_LIMB_SIZE howmany (MANT_DIG, BITS_PER_MP_LIMB) 177 #define MPNSIZE (howmany (1 + ((MANT_DIG - MIN_EXP + 2) * 10) / 3, \ 220 if (exponent < MIN_EXP - 1 - MANT_DIG) in round_and_return() 227 if (shift == MANT_DIG) in round_and_return() 234 round_bit = (MANT_DIG - 1) % BITS_PER_MP_LIMB; in round_and_return() 282 if (((MANT_DIG % BITS_PER_MP_LIMB) == 0 && cy) in round_and_return() 283 || ((MANT_DIG % BITS_PER_MP_LIMB) != 0 in round_and_return() 286 << (MANT_DIG % BITS_PER_MP_LIMB))) in round_and_return() 328 if (((MANT_DIG % BITS_PER_MP_LIMB) == 0 && cy) in round_and_return() [all …]
|
/glibc-2.36/sysdeps/ieee754/ldbl-128/ |
D | s_roundevenl.c | 28 #define MANT_DIG 113 macro 40 int exponent = uhx >> (MANT_DIG - 1 - 64); in __roundevenl() 41 if (exponent >= BIAS + MANT_DIG - 1) in __roundevenl() 50 else if (exponent >= BIAS + MANT_DIG - 64) in __roundevenl() 54 int int_pos = (BIAS + MANT_DIG - 1) - exponent; in __roundevenl() 67 else if (exponent == BIAS + MANT_DIG - 65) in __roundevenl() 85 int int_pos = (BIAS + MANT_DIG - 65) - exponent; in __roundevenl()
|
D | s_fromfpl_main.c | 28 #define MANT_DIG 113 macro 51 int exponent = hx >> (MANT_DIG - 1 - 64); in FUNC() 57 hx &= ((1ULL << (MANT_DIG - 1 - 64)) - 1); in FUNC() 58 hx |= 1ULL << (MANT_DIG - 1 - 64); in FUNC() 65 int shift = MANT_DIG - 1 - exponent; in FUNC()
|
/glibc-2.36/sysdeps/ieee754/ldbl-96/ |
D | s_roundevenl.c | 27 #define MANT_DIG 64 macro 37 if (exponent >= BIAS + MANT_DIG - 1) in __roundevenl() 46 else if (exponent >= BIAS + MANT_DIG - 32) in __roundevenl() 50 int int_pos = (BIAS + MANT_DIG - 1) - exponent; in __roundevenl() 70 else if (exponent == BIAS + MANT_DIG - 33) in __roundevenl() 94 int int_pos = (BIAS + MANT_DIG - 33) - exponent; in __roundevenl()
|
D | s_fromfpl_main.c | 28 #define MANT_DIG 64 macro 60 if (exponent >= MANT_DIG - 1) in FUNC() 69 uint64_t h = 1ULL << (MANT_DIG - 2 - exponent); in FUNC() 75 uret = ix >> (MANT_DIG - 1 - exponent); in FUNC()
|