xref: /haiku/src/system/libroot/posix/glibc/arch/x86/s_finite.S (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1/*
2 * Written by Joe Keane <jgk@jgk.org>.
3 */
4
5#include <machine/asm.h>
6
7ENTRY(__finite)
8	movl	8(%esp),%eax
9	movl    $0xFFEFFFFF,%ecx
10	subl    %eax,%ecx
11	xorl    %ecx,%eax
12	shrl	$31, %eax
13	ret
14END (__finite)
15weak_alias (__finite, finite)
16hidden_def (__finite)
17
18