| 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 * | 4 * |
| 5 * Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>. | 5 * Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include <machine/asm.h> | 8 #include <machine/asm.h> |
| 9 | 9 |
| 10 RCSID("$NetBSD: e_log10.S,v 1.4 1995/05/08 23:49:24 jtc Exp $") | 10 RCSID("$NetBSD: e_log10.S,v 1.4 1995/05/08 23:49:24 jtc Exp $") |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 jc 3f // in case x is NaN or ±Inf | 46 jc 3f // in case x is NaN or ±Inf |
| 47 4: fsubl MO(one) // x-1 : x : log10(2) | 47 4: fsubl MO(one) // x-1 : x : log10(2) |
| 48 fld %st // x-1 : x-1 : x : log10(2) | 48 fld %st // x-1 : x-1 : x : log10(2) |
| 49 fabs // |x-1| : x-1 : x : log10(2) | 49 fabs // |x-1| : x-1 : x : log10(2) |
| 50 fcompl MO(limit) // x-1 : x : log10(2) | 50 fcompl MO(limit) // x-1 : x : log10(2) |
| 51 fnstsw // x-1 : x : log10(2) | 51 fnstsw // x-1 : x : log10(2) |
| 52 andb $0x45, %ah | 52 andb $0x45, %ah |
| 53 jz 2f | 53 jz 2f |
| 54 fstp %st(1) // x-1 : log10(2) | 54 fstp %st(1) // x-1 : log10(2) |
| 55 fyl2xp1 // log10(x) | 55 fyl2xp1 // log10(x) |
| 56 » ret | 56 » NACLRET |
| 57 | 57 |
| 58 2: fstp %st(0) // x : log10(2) | 58 2: fstp %st(0) // x : log10(2) |
| 59 fyl2x // log10(x) | 59 fyl2x // log10(x) |
| 60 » ret | 60 » NACLRET |
| 61 | 61 |
| 62 3: jp 4b // in case x is ±Inf | 62 3: jp 4b // in case x is ±Inf |
| 63 fstp %st(1) | 63 fstp %st(1) |
| 64 fstp %st(1) | 64 fstp %st(1) |
| 65 » ret | 65 » NACLRET |
| 66 END (__ieee754_log10) | 66 END (__ieee754_log10) |
| OLD | NEW |