/haiku/src/system/libroot/posix/musl/math/ |
H A D | j0.c | 66 static double common(uint32_t ix, double x, int y0) argument 84 if (ix < 0x7fe00000) { 91 if (ix < 0x48000000) { 114 uint32_t ix; local 116 GET_HIGH_WORD(ix, x); 117 ix &= 0x7fffffff; 120 if (ix >= 0x7ff00000) 124 if (ix >= 0x40000000) { /* |x| >= 2 */ 126 return common(ix,x,0); 130 if (ix > 162 uint32_t ix,lx; local 267 uint32_t ix; local 363 uint32_t ix; local [all...] |
H A D | j0f.c | 25 static float common(uint32_t ix, float x, int y0) argument 37 if (ix < 0x7f000000) { 44 if (ix < 0x58800000) { 67 uint32_t ix; local 69 GET_FLOAT_WORD(ix, x); 70 ix &= 0x7fffffff; 71 if (ix >= 0x7f800000) 75 if (ix >= 0x40000000) { /* |x| >= 2 */ 77 return common(ix, x, 0); 79 if (ix > 107 uint32_t ix; local 206 uint32_t ix; local 302 uint32_t ix; local [all...] |
H A D | j1.c | 65 static double common(uint32_t ix, double x, int y1, int sign) argument 82 if (ix < 0x7fe00000) { 90 if (ix < 0x48000000) { 116 uint32_t ix; local 119 GET_HIGH_WORD(ix, x); 120 sign = ix>>31; 121 ix &= 0x7fffffff; 122 if (ix >= 0x7ff00000) 124 if (ix >= 0x40000000) /* |x| >= 2 */ 125 return common(ix, fab 155 uint32_t ix,lx; local 254 uint32_t ix; local 350 uint32_t ix; local [all...] |
H A D | j1f.c | 25 static float common(uint32_t ix, float x, int y1, int sign) argument 34 if (ix < 0x7f000000) { 41 if (ix < 0x58800000) { 67 uint32_t ix; local 70 GET_FLOAT_WORD(ix, x); 71 sign = ix>>31; 72 ix &= 0x7fffffff; 73 if (ix >= 0x7f800000) 75 if (ix >= 0x40000000) /* |x| >= 2 */ 76 return common(ix, fabs 105 uint32_t ix; local 202 uint32_t ix; local 298 uint32_t ix; local [all...] |
H A D | log1pf.c | 28 uint32_t ix,iu; local 31 ix = u.i; 33 if (ix < 0x3ed413d0 || ix>>31) { /* 1+x < sqrt(2)+ */ 34 if (ix >= 0xbf800000) { /* x <= -1.0 */ 39 if (ix<<1 < 0x33800000<<1) { /* |x| < 2**-24 */ 41 if ((ix&0x7f800000) == 0) 45 if (ix <= 0xbe95f619) { /* sqrt(2)/2- <= 1+x < sqrt(2)+ */ 50 } else if (ix >= 0x7f800000)
|
H A D | erff.c | 97 static float erfc2(uint32_t ix, float x) argument 102 if (ix < 0x3fa00000) /* |x| < 1.25 */ 107 if (ix < 0x4036db6d) { /* |x| < 1/0.35 */ 118 GET_FLOAT_WORD(ix, x); 119 SET_FLOAT_WORD(z, ix&0xffffe000); 126 uint32_t ix; local 129 GET_FLOAT_WORD(ix, x); 130 sign = ix>>31; 131 ix &= 0x7fffffff; 132 if (ix > 157 uint32_t ix; local [all...] |
H A D | asin.c | 70 uint32_t hx,ix; local 73 ix = hx & 0x7fffffff; 75 if (ix >= 0x3ff00000) { 78 if ((ix-0x3ff00000 | lx) == 0) 84 if (ix < 0x3fe00000) { 86 if (ix < 0x3e500000 && ix >= 0x00100000) 94 if (ix >= 0x3fef3333) { /* if |x| > 0.975 */
|
H A D | __rem_pio2f.c | 47 uint32_t ix; local 50 ix = u.i & 0x7fffffff; 52 if (ix < 0x4dc90fdb) { /* |x| ~< 2^28*(pi/2), medium size */ 59 if(ix>=0x7f800000) { /* x is inf or NaN */ 65 e0 = (ix>>23) - (0x7f+23); /* e0 = ilogb(|x|)-23, positive */ 66 u.i = ix - (e0<<23);
|
H A D | acosf.c | 37 uint32_t hx,ix; local 40 ix = hx & 0x7fffffff; 42 if (ix >= 0x3f800000) { 43 if (ix == 0x3f800000) { 51 if (ix < 0x3f000000) { 52 if (ix <= 0x32800000) /* |x| < 2**-26 */
|
H A D | jnf.c | 21 uint32_t ix; local 25 GET_FLOAT_WORD(ix, x); 26 sign = ix>>31; 27 ix &= 0x7fffffff; 28 if (ix > 0x7f800000) /* nan */ 45 if (ix == 0 || ix == 0x7f800000) /* if x is 0 or inf */ 58 if (ix < 0x35800000) { /* x < 2**-20 */ 164 uint32_t ix, ib; local 168 GET_FLOAT_WORD(ix, [all...] |
H A D | erf.c | 187 static double erfc2(uint32_t ix, double x) argument 192 if (ix < 0x3ff40000) /* |x| < 1.25 */ 197 if (ix < 0x4006db6d) { /* |x| < 1/.35 ~ 2.85714 */ 216 uint32_t ix; local 219 GET_HIGH_WORD(ix, x); 220 sign = ix>>31; 221 ix &= 0x7fffffff; 222 if (ix >= 0x7ff00000) { 226 if (ix < 0x3feb0000) { /* |x| < 0.84375 */ 227 if (ix < 247 uint32_t ix; local [all...] |
H A D | powf.c | 27 /* Subnormal input is normalized so ix has negative biased exponent. 29 static inline double_t log2_inline(uint32_t ix) argument 38 tmp = ix - OFF; 41 iz = ix - top; 120 static inline int zeroinfnan(uint32_t ix) argument 122 return 2 * ix - 1 >= 2u * 0x7f800000 - 1; 128 uint32_t ix, iy; local 130 ix = asuint(x); 132 if (predict_false(ix - 0x00800000 >= 0x7f800000 - 0x00800000 || 138 if (ix [all...] |
H A D | __rem_pio2.c | 53 uint32_t ix; local 57 ix = u.i>>32 & 0x7fffffff; 58 if (ix <= 0x400f6a7a) { /* |x| ~<= 5pi/4 */ 59 if ((ix & 0xfffff) == 0x921fb) /* |x| ~= pi/2 or 2pi/2 */ 61 if (ix <= 0x4002d97c) { /* |x| ~<= 3pi/4 */ 87 if (ix <= 0x401c463b) { /* |x| ~<= 9pi/4 */ 88 if (ix <= 0x4015fdbc) { /* |x| ~<= 7pi/4 */ 89 if (ix == 0x4012d97c) /* |x| ~= 3pi/2 */ 103 if (ix == 0x401921fb) /* |x| ~= 4pi/2 */ 118 if (ix < [all...] |
H A D | acos.c | 63 uint32_t hx,ix; local 66 ix = hx & 0x7fffffff; 68 if (ix >= 0x3ff00000) { 72 if ((ix-0x3ff00000 | lx) == 0) { 81 if (ix < 0x3fe00000) { 82 if (ix <= 0x3c600000) /* |x| < 2**-57 */
|
H A D | erfl.c | 254 static long double erfc2(uint32_t ix, long double x) argument 259 if (ix < 0x3fffa000) /* 0.84375 <= |x| < 1.25 */ 264 if (ix < 0x4000b6db) { /* 1.25 <= |x| < 2.857 ~ 1/.35 */ 269 } else if (ix < 0x4001d555) { /* 2.857 <= |x| < 6.6666259765625 */ 290 uint32_t ix = (u.i.se & 0x7fffU)<<16 | u.i.m>>48; local 293 if (ix >= 0x7fff0000) 296 if (ix < 0x3ffed800) { /* |x| < 0.84375 */ 297 if (ix < 0x3fde8000) { /* |x| < 2**-33 */ 308 if (ix < 0x4001d555) /* |x| < 6.6666259765625 */ 309 y = 1 - erfc2(ix, 319 uint32_t ix = (u.i.se & 0x7fffU)<<16 | u.i.m>>48; local [all...] |
H A D | jn.c | 43 uint32_t ix, lx; local 47 EXTRACT_WORDS(ix, lx, x); 48 sign = ix>>31; 49 ix &= 0x7fffffff; 51 if ((ix | (lx|-lx)>>31) > 0x7ff00000) /* nan */ 71 if ((ix|lx) == 0 || ix == 0x7ff00000) /* if x is 0 or inf */ 75 if (ix >= 0x52d00000) { /* x > 2**302 */ 108 if (ix < 0x3e100000) { /* x < 2**-29 */ 217 uint32_t ix, l local [all...] |
H A D | log.c | 31 uint64_t ix, iz, tmp; local 35 ix = asuint64(x); 39 if (predict_false(ix - LO < HI - LO)) { 42 if (WANT_ROUNDING && predict_false(ix == asuint64(1.0))) 65 if (ix * 2 == 0) 67 if (ix == asuint64(INFINITY)) /* log(inf) == inf. */ 72 ix = asuint64(x * 0x1p52); 73 ix -= 52ULL << 52; 79 tmp = ix - OFF; 82 iz = ix [all...] |
H A D | log2.c | 31 uint64_t ix, iz, tmp; local 35 ix = asuint64(x); 39 if (predict_false(ix - LO < HI - LO)) { 42 if (WANT_ROUNDING && predict_false(ix == asuint64(1.0))) 68 if (ix * 2 == 0) 70 if (ix == asuint64(INFINITY)) /* log(inf) == inf. */ 75 ix = asuint64(x * 0x1p52); 76 ix -= 52ULL << 52; 82 tmp = ix - OFF; 85 iz = ix [all...] |
/haiku/src/add-ons/kernel/drivers/audio/cmedia/ |
H A D | midi.c | 84 int ix; local 90 for (ix=0; ix<num_cards; ix++) { 91 if (!strcmp(name, cards[ix].midi.name)) { 95 if (ix >= num_cards) { 100 ddprintf(("cmedia_pci: mpu401: %p open(): %p driver: %p\n", mpu401, mpu401->open_hook, cards[ix].midi.driver)); 101 ret = (*mpu401->open_hook)(cards[ix].midi.driver, flags, cookie); 103 cards[ix].midi.cookie = *cookie; 104 atomic_add(&cards[ix] 124 int ix; local [all...] |
H A D | cm.c | 100 int ix=0; local 109 while ((*pci->get_nth_pci_info)(ix, &info) == B_OK) { 117 ix++; 194 int ix; 197 for (ix=0; ix<6; ix++) { 198 if (ix == 2 || ix == 3) dprintf(" "); 199 else dprintf(" %02x", get_direct(card, ix)); 480 int ix = 0; local 506 int ix = 0; local 621 int ix, cnt = num_cards; local 640 int ix = 0; local 653 int ix; local [all...] |
H A D | joy.c | 46 int ix; local 52 for (ix=0; ix<num_cards; ix++) { 53 if (!strcmp(name, cards[ix].joy.name1)) { 61 return (*gameport->open_hook)(cards[ix].joy.driver, flags, cookie);
|
/haiku/src/add-ons/kernel/drivers/audio/emuxki/ |
H A D | midi.c | 104 int ix; local 110 for (ix=0; ix<num_cards; ix++) { 111 if (!strcmp(name, cards[ix].midi.name)) { 115 if (ix >= num_cards) { 120 LOG(("mpu401: %p open(): %p driver: %p\n", mpu401, mpu401->open_hook, cards[ix].midi.driver)); 121 ret = (*mpu401->open_hook)(cards[ix].midi.driver, flags, cookie); 123 cards[ix].midi.cookie = *cookie; 124 atomic_add(&cards[ix] 144 int ix; local [all...] |
H A D | joy.c | 44 int ix; local 50 for (ix = 0; ix < num_cards; ix++) { 51 if (!strcmp(name, cards[ix].joy.name1)) { 59 return (*gameport->open_hook)(cards[ix].joy.driver, flags, cookie);
|
/haiku/src/add-ons/kernel/drivers/audio/echo/ |
H A D | midi.cpp | 53 int ix; local 58 for (ix=0; ix<num_cards; ix++) { 59 if (!strcmp(name, cards[ix].midi.name)) { 63 if (ix >= num_cards) { 68 *cookie = &cards[ix]; 69 atomic_add(&cards[ix].midi.count, 1); 70 memset(&cards[ix].midi.context, 0, sizeof(cards[ix] [all...] |
/haiku/src/add-ons/kernel/drivers/joystick/emuxkigameport/ |
H A D | driver.cpp | 82 int ix = 0; local 88 while ((*pci->get_nth_pci_info)(ix, &info) == B_OK) { 107 ix++; 120 int ix = 0; local 133 while ((*pci->get_nth_pci_info)(ix, &info) == B_OK) { 152 ix++; 167 int ix = 0; local 170 for (ix = 0; ix < num_cards; ix 204 int ix; local [all...] |