2 * Written by J.T. Conklin <jtc@netbsd.org>.
5 * Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
8 #include <machine/asm.h>
10 RCSID("$NetBSD: s_log1p.S,v 1.7 1995/05/09 00:10:58 jtc Exp $")
15 /* The fyl2xp1 can only be used for values in
16 -1 + sqrt(2) / 2 <= x <= 1 - sqrt(2) / 2
20 /* Please note: we use a double value here. Since 1.0 has
21 an exact representation this does not effect the accuracy
22 but it helps to optimize the code. */
26 * Use the fyl2xp1 function when the argument is in the range -0.29 to 0.29,
27 * otherwise fyl2x with the needed extra computation.
43 jc 3f // in case x is NaN or ±Inf
47 fldt limit@GOTOFF(%edx)
56 movzwl 4+8(%esp), %eax
62 faddl one@GOTOFF(%edx)
72 3: jp 4b // in case x is ±Inf
78 weak_alias (__log1pl, log1pl)