2 * Written by J.T. Conklin <jtc@netbsd.org>.
4 * Adapted for float type by Ulrich Drepper <drepper@cygnus.com>.
6 * Correct handling of y==-inf <drepper@gnu>
9 #include <machine/asm.h>
14 .type zero_nan,@object
17 nan: .byte 0, 0, 0, 0, 0, 0, 0xff, 0x7f
18 .byte 0, 0, 0, 0, 0, 0, 0, 0x80
19 .byte 0, 0, 0, 0, 0, 0, 0xff, 0x7f
20 ASM_SIZE_DIRECTIVE(zero_nan)
24 # define MO(op) op##@GOTOFF(%ecx)
25 # define MOX(op,x,f) op##@GOTOFF(%ecx,x,f)
28 # define MOX(op,x,f) op(,x,f)
33 ENTRY(__ieee754_scalbf)
69 andl $0x80000000, %edx
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_scalbf, __scalbf_finite)