| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Written by J.T. Conklin <jtc@netbsd.org>. | 2 * Written by J.T. Conklin <jtc@netbsd.org>. |
| 3 * Public domain. | 3 * Public domain. |
| 4 * Adapted for float by Ulrich Drepper <drepper@cygnus.com>. | 4 * Adapted for float by Ulrich Drepper <drepper@cygnus.com>. |
| 5 * | 5 * |
| 6 * Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>. | 6 * Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include <machine/asm.h> | 9 #include <machine/asm.h> |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 jc 3f // in case x is NaN or +-Inf | 47 jc 3f // in case x is NaN or +-Inf |
| 48 4: fsubl MO(one) // x-1 : x : log(2) | 48 4: fsubl MO(one) // x-1 : x : log(2) |
| 49 fld %st // x-1 : x-1 : x : log(2) | 49 fld %st // x-1 : x-1 : x : log(2) |
| 50 fabs // |x-1| : x-1 : x : log(2) | 50 fabs // |x-1| : x-1 : x : log(2) |
| 51 fcompl MO(limit) // x-1 : x : log(2) | 51 fcompl MO(limit) // x-1 : x : log(2) |
| 52 fnstsw // x-1 : x : log(2) | 52 fnstsw // x-1 : x : log(2) |
| 53 andb $0x45, %ah | 53 andb $0x45, %ah |
| 54 jz 2f | 54 jz 2f |
| 55 fstp %st(1) // x-1 : log(2) | 55 fstp %st(1) // x-1 : log(2) |
| 56 fyl2xp1 // log(x) | 56 fyl2xp1 // log(x) |
| 57 » ret | 57 » NACLRET |
| 58 | 58 |
| 59 2: fstp %st(0) // x : log(2) | 59 2: fstp %st(0) // x : log(2) |
| 60 fyl2x // log(x) | 60 fyl2x // log(x) |
| 61 » ret | 61 » NACLRET |
| 62 | 62 |
| 63 3: jp 4b // in case x is +-Inf | 63 3: jp 4b // in case x is +-Inf |
| 64 fstp %st(1) | 64 fstp %st(1) |
| 65 fstp %st(1) | 65 fstp %st(1) |
| 66 » ret | 66 » NACLRET |
| 67 END (__ieee754_logf) | 67 END (__ieee754_logf) |
| OLD | NEW |