5 #include <machine/asm.h>
7 ENTRY(__ieee754_ilogbl)
9 /* I added the following ugly construct because ilogb(+-Inf) is
10 required to return INT_MAX in ISO C99.
11 -- jakub@redhat.com. */
12 fxam /* Is NaN or +-Inf? */
17 je 1f /* Is +-Inf, jump. */
19 je 2f /* Is +-Inf, jump. */
31 movl $0x7fffffff, %eax
34 movl $0x80000000, %eax /* FP_ILOGB0 */
36 END (__ieee754_ilogbl)