2 * Written by J.T. Conklin <jtc@netbsd.org>.
6 #include <machine/asm.h>
8 RCSID("$NetBSD: s_log1pf.S,v 1.4 1995/05/09 00:13:05 jtc Exp $")
16 /* The fyl2xp1 can only be used for values in
17 -1 + sqrt(2) / 2 <= x <= 1 - sqrt(2) / 2
24 * Use the fyl2xp1 function when the argument is in the range -0.29 to 0.29,
25 * otherwise fyl2x with the needed extra computation.
41 jc 3f // in case x is NaN or ±Inf
44 fcomps limit@GOTOFF(%edx)
53 fadds one@GOTOFF(%edx)
58 popl %ecx; nacljmp %ecx
61 popl %ecx; nacljmp %ecx
63 3: jp 4b // in case x is ±Inf
66 popl %ecx; nacljmp %ecx
69 weak_alias (__log1pf, log1pf)