/haiku/headers/libs/mapm/ |
H A D | m_apm.h | 512 int exponent(void) const function in class:MAPM
|
/haiku/src/libs/mapm/ |
H A D | mapm_set.c | 162 int i, j, zflag, exponent, sign; local 222 exponent = 0; /* default */ 226 exponent = atoi(cp + sizeof(char)); 227 *cp = '\0'; /* erase the exponent now */ 237 if (j > 0) /* normalize number and adjust exponent */ 239 exponent += j; 292 ctmp->m_apm_exponent = exponent;
|
H A D | mapmutil.c | 302 int i, index, datalength, exponent; local 309 exponent = atmp->m_apm_exponent; 342 exponent -= 2 * i; 354 exponent--; 393 exponent = 0; 401 atmp->m_apm_exponent = exponent;
|
/haiku/src/system/libnetwork/netresolv/resolv/ |
H A D | res_debug.c | 778 int mantissa, exponent; local 781 exponent = (int)((prec >> 0) & 0x0f) % 10; 783 val = mantissa * poweroften[exponent]; 795 int exponent; local 814 for (exponent = 0; exponent < 9; exponent++) 815 if (cmval < poweroften[exponent+1]) 818 mantissa = cmval / poweroften[exponent]; 822 retval = (mantissa << 4) | exponent; [all...] |
/haiku/src/system/libroot/posix/glibc/arch/generic/ |
H A D | dbl2mpn.c | 39 *expt = (int) u.ieee.exponent - IEEE754_DOUBLE_BIAS; 57 if (u.ieee.exponent == 0) 59 /* A biased exponent of zero is a special case. 67 one bit, and its exponent is in fact the format minimum. */
|
H A D | ldbl2mpn.c | 41 *expt = (int) u.ieee.exponent - IEEE854_LONG_DOUBLE_BIAS; 56 if (u.ieee.exponent == 0) 58 /* A biased exponent of zero is a special case. 66 one bit, and its exponent is in fact the format minimum. */
|
H A D | mpn2dbl.c | 34 u.ieee.exponent = expt + IEEE754_DOUBLE_BIAS;
|
H A D | mpn2flt.c | 34 u.ieee.exponent = expt + IEEE754_FLOAT_BIAS;
|
H A D | mpn2ldbl.c | 35 u.ieee.exponent = expt + IEEE854_LONG_DOUBLE_BIAS;
|
/haiku/src/system/libroot/posix/glibc/arch/ppc/ |
H A D | ldbl2mpn.c | 41 *expt = (int) u.ieee.exponent - IEEE854_LONG_DOUBLE_BIAS; 56 if (u.ieee.exponent == 0) 58 /* A biased exponent of zero is a special case. 66 one bit, and its exponent is in fact the format minimum. */
|
/haiku/src/system/libroot/posix/glibc/arch/x86/ |
H A D | ldbl2mpn.c | 40 *expt = (int) u.ieee.exponent - IEEE854_LONG_DOUBLE_BIAS; 55 if (u.ieee.exponent == 0) 57 /* A biased exponent of zero is a special case. 65 one bit, and its exponent is in fact the format minimum. */ 112 else if (u.ieee.exponent < 0x7fff
|
/haiku/src/system/libroot/posix/glibc/include/ |
H A D | ieee754.h | 37 unsigned int exponent:8; member in struct:ieee754_float::__anon5465 42 unsigned int exponent:8; member in struct:ieee754_float::__anon5465 52 unsigned int exponent:8; member in struct:ieee754_float::__anon5466 59 unsigned int exponent:8; member in struct:ieee754_float::__anon5466 65 #define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */ 77 unsigned int exponent:11; member in struct:ieee754_double::__anon5467 85 unsigned int exponent:11; member in struct:ieee754_double::__anon5467 92 unsigned int exponent:11; member in struct:ieee754_double::__anon5467 103 unsigned int exponent:11; member in struct:ieee754_double::__anon5468 112 unsigned int exponent 139 unsigned int exponent:15; member in struct:ieee854_long_double::__anon5469 146 unsigned int exponent:15; member in struct:ieee854_long_double::__anon5469 154 unsigned int exponent:15; member in struct:ieee854_long_double::__anon5469 166 unsigned int exponent:15; member in struct:ieee854_long_double::__anon5470 175 unsigned int exponent:15; member in struct:ieee854_long_double::__anon5470 187 unsigned int exponent:15; member in struct:ieee854_long_double::__anon5470 [all...] |
/haiku/src/system/libroot/posix/glibc/misc/ |
H A D | efgcvt_r.c | 163 int exponent = 0; variable 179 --exponent; 190 ++exponent; 200 exponent = 0; 213 *decpt += exponent;
|
/haiku/src/system/libroot/posix/glibc/stdlib/ |
H A D | erand48_r.c | 41 temp.ieee.exponent = IEEE754_DOUBLE_BIAS;
|
H A D | strtod.c | 151 containing the fraction bits, a base 2 exponent, and a sign flag. */ 152 extern FLOAT MPN2FLOAT (mp_srcptr mpn, int exponent, int negative); 209 round_and_return (mp_limb_t *retval, int exponent, int negative, argument 212 if (exponent < MIN_EXP - 1) 214 mp_size_t shift = MIN_EXP - 1 - exponent; 259 exponent bias is the same for normalized and denormalized 264 exponent = DENORM_EXP; 278 ++exponent; 283 else if (exponent == DENORM_EXP 288 exponent 443 int exponent; /* Exponent of the number. */ variable [all...] |
/haiku/headers/posix/ |
H A D | math.h | 163 extern float ldexpf(float x, int exponent); 224 extern double ldexp(double x, int exponent); 284 extern long double ldexpl(long double x, int exponent);
|
/haiku/src/add-ons/accelerants/intel_extreme/ |
H A D | overlay.cpp | 46 uint8 exponent; member in struct:phase_coefficient 52 sign, mantissa, and exponent. 72 splitCoefficient.exponent = 3; 77 splitCoefficient.exponent = 2; 82 splitCoefficient.exponent = 1; 87 splitCoefficient.exponent = 0; 145 // split them into sign/mantissa/exponent 684 | coefficients[pos].exponent << 12 695 | coefficientsUV[pos].exponent << 12
|
/haiku/src/add-ons/kernel/busses/scsi/ahci/ |
H A D | ahci_port.cpp | 958 uint8 exponent = 0; local 960 exponent++; 961 scsiData.logical_blocks_per_physical_block_exponent = exponent;
|
/haiku/src/apps/deskcalc/ |
H A D | ExpressionTextView.cpp | 217 // calculate the value of the exponent 218 int32 exponent = 0; local 221 exponent = value.CountChars() - decimalSeparatorWidth - firstDigit; 229 exponent = 0; 234 // check for negative exponent value 235 exponent = 0; 238 exponent--; 251 exponent = 0; 257 exponent = offset - (firstDigit + 1); 262 if (exponent ! 267 value << "E" << exponent; local 321 value << 'E' << exponent; local [all...] |
/haiku/src/libs/icon/flat_icon/ |
H A D | FlatIconFormat.cpp | 86 int exponent = ((shortValue & 0x7e0000) >> 17) - 32; local 96 i2f.intValue = (sign << 31) | ((exponent + 127) << 23) | mantissa; 108 // 6 bit exponent 118 int exponent = ((f2i.intValue & 0x7f800000) >> 23) - 127; local 121 if (exponent >= 32 || exponent < -32) { 128 | ((exponent + 32) << 17)
|
/haiku/src/system/libroot/posix/glibc/stdio-common/ |
H A D | printf_fp.c | 173 /* and the exponent. */ 174 int exponent; local 175 /* Sign of the exponent. */ 209 if (expsign != 0 && _tolower (type) == 'f' && exponent-- > 0) 362 &exponent, &is_neg, 406 &exponent, &is_neg, fpnum.dbl); 438 /* We need three multiprecision variables. Now that we have the exponent 443 mp_size_t bignum_size = ((ABS (exponent) + BITS_PER_MP_LIMB - 1) 454 if (exponent > 2) 463 if ((exponent [all...] |
H A D | printf_fphex.c | 145 exponent = fpnum.ldbl.ieee.exponent; \ 147 if (exponent == 0) \ 156 exponent bias is the same for normalized and denormalized \ 158 exponent = LONG_DOUBLE_DENORM_BIAS + 3; \ 161 else if (exponent >= IEEE854_LONG_DOUBLE_BIAS + 3) \ 164 exponent -= IEEE854_LONG_DOUBLE_BIAS + 3; \ 169 exponent = -(exponent - (IEEE854_LONG_DOUBLE_BIAS + 3)); \ 207 /* The maximal exponent o 213 int exponent = 0; local [all...] |
/haiku/src/system/libroot/posix/musl/math/x86/ |
H A D | expl.s | 12 # check if (exponent|0x8000) is in [0xbfff-32, 0xbfff+13]
|
/haiku/src/system/libroot/posix/musl/math/x86_64/ |
H A D | expl.s | 12 # check if (exponent|0x8000) is in [0xbfff-32, 0xbfff+13]
|
/haiku/src/tests/libs/icon/flat_icon/ |
H A D | FlatIconFormat.py | 11 exponent = 2 ** (((value & 0x7e0000) >> 17) - 32) 13 return sign * exponent * (1 + mantissa) 27 # TODO: make sure exponent fits in 6 bits 28 exponent = math.floor(math.log2(abs(value))) 30 exponent = -32 33 mantissa = abs(value) / 2**exponent - 1 37 return (sign << 23) + ((exponent+32) << 17) + math.floor(mantissa * 2 ** 17)
|