2 * Written by J.T. Conklin <jtc@netbsd.org>.
5 * Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
7 * Correct handling of y==-inf <drepper@gnu>
10 #include <machine/asm.h>
15 .type zero_nan,@object
18 nan: .byte 0, 0, 0, 0, 0, 0, 0xff, 0x7f
19 .byte 0, 0, 0, 0, 0, 0, 0, 0x80
20 .byte 0, 0, 0, 0, 0, 0, 0xff, 0x7f
21 ASM_SIZE_DIRECTIVE(zero_nan)
25 # define MO(op) op##@GOTOFF(%ecx)
26 # define MOX(op,x,f) op##@GOTOFF(%ecx,x,f)
29 # define MOX(op,x,f) op(,x,f)
33 ENTRY(__ieee754_scalbl)
74 fldl MOX(zero_nan, %eax, 1)
77 /* The result is NaN, but we must not raise an exception.
87 /* The first parameter is a NaN. Return it. */
91 /* Return NaN and raise the invalid exception. */
98 strong_alias (__ieee754_scalbl, __scalbl_finite)