xref: /haiku/src/system/libroot/posix/glibc/arch/x86/s_finite.S (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
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