5 #include <machine/asm.h>
7 RCSID("$NetBSD: s_ilogb.S,v 1.5 1995/10/12 15:53:09 jtc Exp $")
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 */