/netbsd-current/external/gpl3/gcc.old/dist/libhsail-rt/rt/ |
H A D | fp16.c | 31 unsigned int mantissa = a & 0x007fffff; local 39 if (mantissa == 0) 42 return sign | 0x7e00 | (mantissa >> 13); 45 if (aexp == 0 && mantissa == 0) 51 mantissa |= 0x00800000; 62 if (mantissa & mask) 65 if ((mantissa & mask) == increment) 66 increment = mantissa & (increment << 1); 67 mantissa += increment; 68 if (mantissa > 105 unsigned int mantissa = a & 0x3ff; local [all...] |
/netbsd-current/external/gpl3/gcc.old/dist/libgcc/config/arm/ |
H A D | fp16.c | 62 unsigned long long mantissa; local 66 /* Get the exponent and mantissa encodings. */ 67 mantissa = a & (point - 1); 77 if (mantissa == 0) 80 return sign | 0x7e00 | (mantissa >> (fmt->significand - 10)); 84 if (aexp == 0 && mantissa == 0) 87 /* Construct the exponent and mantissa. */ 91 mantissa |= point; 104 if (mantissa & mask) 107 if ((mantissa 173 unsigned int mantissa = a & 0x3ff; local [all...] |
/netbsd-current/external/gpl3/gcc/dist/libgcc/config/arm/ |
H A D | fp16.c | 70 unsigned long long mantissa; local 74 /* Get the exponent and mantissa encodings. */ 75 mantissa = a & (point - 1); 85 if (mantissa == 0) 88 return sign | 0x7e00 | (mantissa >> (fmt->significand - 10)); 92 if (aexp == 0 && mantissa == 0) 95 /* Construct the exponent and mantissa. */ 99 mantissa |= point; 112 if (mantissa & mask) 115 if ((mantissa 181 unsigned int mantissa = a & 0x3ff; local [all...] |
/netbsd-current/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/ryu/ |
H A D | ryu_generic_128.h | 40 uint128_t mantissa; member in struct:floating_decimal_128 50 // sign + mantissa digits + decimal dot + 'E' + exponent sign + exponent digits
|
H A D | generic_128.c | 55 fd.mantissa = 0; 62 fd.mantissa = explicitLeadingBit ? ieeeMantissa & ((ONE << (mantissaBits - 1)) - 1) : ieeeMantissa; 233 fd.mantissa = output; 240 if (fd.mantissa) { 262 uint128_t output = v.mantissa; 266 printf("DIGITS=%s\n", s(v.mantissa));
|
H A D | d2s.c | 72 uint64_t mantissa; member in struct:floating_decimal_64 298 fd.mantissa = output; 310 uint64_t output = v.mantissa; 314 printf("DIGITS=%" PRIu64 "\n", v.mantissa); 435 // Note: mantissa might contain trailing (decimal) 0's. 437 v->mantissa = m2 >> -e2; 455 // Decode bits into sign, mantissa, and exponent. 467 // For small integers in the range [1, 2^53), v.mantissa might contain trailing (decimal) zeros. 472 const uint64_t q = div10(v.mantissa); 473 const uint32_t r = ((uint32_t) v.mantissa) [all...] |
H A D | f2s.c | 33 uint32_t mantissa; member in struct:floating_decimal_32 216 fd.mantissa = output; 228 uint32_t output = v.mantissa; 232 printf("DIGITS=%u\n", v.mantissa); 309 // Decode bits into sign, mantissa, and exponent.
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/dc/calcs/ |
H A D | amdgpu_custom_float.c | 38 uint32_t *mantissa, 54 *mantissa = 0; 83 *mantissa = 0; 122 *mantissa = dc_fixpt_floor(mantiss); 130 uint32_t mantissa, 149 if (mantissa & ~mantissa_mask) { 151 mantissa = mantissa_mask; 164 if (mantissa & mask) 192 uint32_t mantissa; local 197 value, format, &negative, &mantissa, 34 build_custom_float( struct fixed31_32 value, const struct custom_float_format *format, bool *negative, uint32_t *mantissa, uint32_t *exponenta) argument 127 setup_custom_float( const struct custom_float_format *format, bool negative, uint32_t mantissa, uint32_t exponenta, uint32_t *result) argument [all...] |
/netbsd-current/external/lgpl3/mpfr/dist/src/ |
H A D | stack_interface.c | 35 mpfr_custom_init (void *mantissa, mpfr_prec_t prec) argument 64 mpfr_prec_t prec, void *mantissa) 88 MPFR_MANT (x) = (mp_limb_t*) mantissa; 63 mpfr_custom_init_set(mpfr_ptr x, int kind, mpfr_exp_t exp, mpfr_prec_t prec, void *mantissa) argument
|
H A D | strtofr.c | 33 unsigned char *mantissa; /* raw significand (without any point) */ member in struct:parsed_string 36 allocated for the mantissa field. */ 38 size_t alloc; /* allocation size of mantissa */ 242 pstr->mantissa = NULL; 325 /* Alloc mantissa */ 327 pstr->mantissa = (unsigned char*) mpfr_allocate_func (pstr->alloc); 329 /* Read mantissa digits */ 331 mant = pstr->mantissa; 358 /* Update the # of char in the mantissa */ 359 pstr->prec = mant - pstr->mantissa; [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/utils/benchmark/src/ |
H A D | string_util.cc | 31 double one_k, std::string* mantissa, 57 *mantissa = mantissa_stream.str(); 72 *mantissa = mantissa_stream.str(); 83 *mantissa = mantissa_stream.str(); 102 std::string mantissa; local 104 ToExponentAndMantissa(value, threshold, precision, one_k, &mantissa, 106 return mantissa + ExponentToPrefix(exponent, false); 30 ToExponentAndMantissa(double val, double thresh, int precision, double one_k, std::string* mantissa, int64_t* exponent) argument
|
/netbsd-current/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/ |
H A D | floating_from_chars.cc | 585 // mantissa. 593 // Now consume the rest of the written mantissa, populating MANTISSA with 594 // the first MANTISSA_BITS+k significant bits of the written mantissa, where 602 uint_t mantissa = 0; local 606 // exponent in order to represent the mantissa 609 // bit is set in the written mantissa. 611 // written mantissa. 627 if (!seen_decimal_point && mantissa != 0) 629 else if (seen_decimal_point && mantissa == 0) 637 mantissa | [all...] |
H A D | floating_to_chars.cc | 379 typename floating_type_traits<T>::mantissa_t mantissa; member in struct:__anon1955::ieee_t 407 ieee_repr.mantissa 425 // mantissa (plus an implicit leading bit). We use the exponent and sign 426 // of the high part, and we merge the mantissa of the high part with the 427 // mantissa (and the implicit leading bit) of the low part. 443 // The following code for adjusting the low-part mantissa to combine 444 // it with the high-part mantissa is taken from the glibc source file 475 ieee_repr.mantissa = ((uint128_t{mantissa_hi} << 64) 503 const auto [mantissa, exponent, sign] = get_ieee_repr(value); 504 return ryu::generic_binary_to_decimal(mantissa, exponen [all...] |
/netbsd-current/external/lgpl3/mpfr/dist/tests/ |
H A D | tstckintc.c | 125 void *mantissa = new_st (mpfr_custom_get_size (p)); local 127 mpfr_custom_init (mantissa, p); 128 mpfr_custom_init_set (x, 0, 0, p, mantissa); 137 void *mantissa = new_st ((mpfr_custom_get_size) (p)); local 139 (mpfr_custom_init) (mantissa, p); 140 (mpfr_custom_init_set) (x, MPFR_NAN_KIND, 0, p, mantissa); 149 void *mantissa = new_st ((mpfr_custom_get_size) (p)); local 154 mpfr_custom_init ((i1++, mantissa), (i2++, p)); 169 (i5++, mantissa)); 187 void *mantissa local 198 void *mantissa = mpfr_custom_get_significand (x); local 245 void *mantissa = (mpfr_custom_get_significand) (x); local [all...] |
/netbsd-current/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/ |
H A D | string_util.cc | 31 double one_k, std::string* mantissa, 57 *mantissa = mantissa_stream.str(); 72 *mantissa = mantissa_stream.str(); 83 *mantissa = mantissa_stream.str(); 102 std::string mantissa; local 104 ToExponentAndMantissa(value, threshold, precision, one_k, &mantissa, 106 return mantissa + ExponentToPrefix(exponent, false); 30 ToExponentAndMantissa(double val, double thresh, int precision, double one_k, std::string* mantissa, int64_t* exponent) argument
|
/netbsd-current/external/gpl3/gcc/dist/gcc/config/m68k/ |
H A D | math-68881.h | 497 double mantissa; local 504 : "=f" (mantissa) /* 1.0 <= mantissa < 2.0 */ 506 if (mantissa != 0) 509 : "=f" (mantissa) /* mantissa /= 2.0 */ 510 : "0" (mantissa)); 514 return mantissa;
|
/netbsd-current/external/gpl3/gcc.old/dist/gcc/config/m68k/ |
H A D | math-68881.h | 497 double mantissa; local 504 : "=f" (mantissa) /* 1.0 <= mantissa < 2.0 */ 506 if (mantissa != 0) 509 : "=f" (mantissa) /* mantissa /= 2.0 */ 510 : "0" (mantissa)); 514 return mantissa;
|
/netbsd-current/lib/libc/rpc/ |
H A D | xdr_float.c | 84 unsigned int mantissa: 23; 138 is.mantissa = (vs.mantissa1 << 16) | vs.mantissa2; 155 (is.mantissa == lim->ieee.mantissa)) { 161 vsp->mantissa2 = is.mantissa; 162 vsp->mantissa1 = ((unsigned int)is.mantissa >> 16);
|
/netbsd-current/external/gpl3/gcc/dist/libstdc++-v3/src/c++17/fast_float/ |
H A D | fast_float.h | 291 uint64_t mantissa{0}; 295 return mantissa == o.mantissa && power2 == o.power2; 298 return mantissa != o.mantissa || power2 != o.power2; 491 uint64_t word = am.mantissa; 579 uint64_t mantissa{0}; 729 answer.mantissa = i; 1488 // create an adjusted mantissa, biased by the invalid power2 1495 answer.mantissa [all...] |
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/math/ |
H A D | operations.d | 853 * Returns: the number of mantissa bits which are equal in x and y. 1037 Use $(LREF feqrel) to get the number of equal bits in the mantissa. 1223 Use $(LREF feqrel) to get the number of equal bits in the mantissa. 1708 ulong mantissa; 1750 ret.mantissa = isNaN(val) ? ((1L << 63) - 1) : 0; 1767 ret.mantissa = tmp & long.max; 1775 ret.mantissa = (cast(ulong*) vs)[0] & long.max; 1798 ret.mantissa = ival & ((1L << (T.mant_dig - 1)) - 1); 1805 ret.mantissa |= 1L << (T.mant_dig - 1); 1818 assert(bp.mantissa [all...] |
/netbsd-current/sys/arch/m68k/fpsp/ |
H A D | l_fpsp.h | 164 FPTEMP_HI equ FPTEMP+4 ;fptemp mantissa [63:32] (4 bytes) 165 FPTEMP_LO equ FPTEMP+8 ;fptemp mantissa [31:00] (4 bytes) 171 ETEMP_HI equ ETEMP+4 ;etemp mantissa [63:32] (4 bytes) 172 ETEMP_LO equ ETEMP+8 ;etemp mantissa [31:00] (4 bytes) 260 signan_bit equ 6 signalling nan bit in mantissa 263 rnd_stky_bit equ 29 round/sticky bit of mantissa
|
/netbsd-current/lib/libc/arch/sparc64/gen/ |
H A D | modf.S | 60 * have 52 bits of mantissa, 11 bits of exponent, and one bit of sign, 89 .word 0x43300000 ! sign = 0, exponent = 52 + 1023, mantissa = 0
|
/netbsd-current/sys/arch/m68k/fpe/ |
H A D | fpu_fmovecr.c | 45 #error you have to change this table when changing the mantissa size
|
/netbsd-current/external/bsd/libbind/dist/resolv/ |
H A D | res_debug.c | 770 int mantissa, exponent; local 772 mantissa = (int)((prec >> 4) & 0x0f) % 10; 775 val = mantissa * poweroften[exponent]; 788 int mantissa; local 810 mantissa = cmval / poweroften[exponent]; 811 if (mantissa > 9) 812 mantissa = 9; 814 retval = (mantissa << 4) | exponent;
|
/netbsd-current/lib/libc/resolv/ |
H A D | res_debug.c | 777 int mantissa, exponent; local 779 mantissa = (int)((prec >> 4) & 0x0f) % 10; 782 val = mantissa * poweroften[exponent]; 795 int mantissa; local 817 mantissa = cmval / poweroften[exponent]; 818 if (mantissa > 9) 819 mantissa = 9; 821 retval = (mantissa << 4) | exponent;
|