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