2 * Written by J.T. Conklin <jtc@netbsd.org>.
5 * Correct handling of y==-inf <drepper@gnu>
8 #include <machine/asm.h>
13 .type zero_nan,@object
16 nan: .byte 0, 0, 0, 0, 0, 0, 0xff, 0x7f
17 .byte 0, 0, 0, 0, 0, 0, 0, 0x80
18 .byte 0, 0, 0, 0, 0, 0, 0xff, 0x7f
19 ASM_SIZE_DIRECTIVE(zero_nan)
23 # define MO(op) op##@GOTOFF(%ecx)
24 # define MOX(op,x,f) op##@GOTOFF(%ecx,x,f)
27 # define MOX(op,x,f) op(,x,f)
31 ENTRY(__ieee754_scalb)
67 andl $0x80000000, %edx
72 fldl MOX(zero_nan, %eax, 1)
75 /* The result is NaN, but we must not raise an exception.
85 /* The first parameter is a NaN. Return it. */
89 /* Return NaN and raise the invalid exception. */
96 strong_alias (__ieee754_scalb, __scalb_finite)