2 * Written by J.T. Conklin <jtc@netbsd.org>.
6 #include <machine/asm.h>
8 RCSID("$NetBSD: s_ilogb.S,v 1.5 1995/10/12 15:53:09 jtc Exp $")
12 /* I added the following ugly construct because ilogb(+-Inf) is
13 required to return INT_MAX in ISO C99.
14 -- jakub@redhat.com. */
15 fxam /* Is NaN or +-Inf? */
20 je 1f /* Is +-Inf, jump. */
24 cfi_adjust_cfa_offset (4)
30 cfi_adjust_cfa_offset (-4)
35 movl $0x7fffffff, %eax
38 weak_alias (__ilogb, ilogb)