2 * Written by J.T. Conklin <jtc@netbsd.org>.
6 #include <machine/asm.h>
8 RCSID("$NetBSD: s_log1p.S,v 1.7 1995/05/09 00:10:58 jtc Exp $")
13 /* The fyl2xp1 can only be used for values in
14 -1 + sqrt(2) / 2 <= x <= 1 - sqrt(2) / 2
20 .section .rodata.cst8,"aM",@progbits,8
24 dbl_min: .byte 0, 0, 0, 0, 0, 0, 0x10, 0
25 ASM_SIZE_DIRECTIVE(dbl_min)
28 * Use the fyl2xp1 function when the argument is in the range -0.29 to 0.29,
29 * otherwise fyl2x with the needed extra computation.
45 jc 3f // in case x is NaN or ±Inf
48 fcompl limit@GOTOFF(%edx)
57 faddl one@GOTOFF(%edx)
66 fldl dbl_min@GOTOFF(%edx)
77 cfi_adjust_cfa_offset (8)
82 cfi_adjust_cfa_offset (-8)
85 3: jp 4b // in case x is ±Inf