xref: /haiku/src/system/libroot/posix/glibc/arch/x86_64/s_finitel.S (revision 25a7b01d15612846f332751841da3579db313082)
1/*
2 * Written by Joe Keane <jgk@jgk.org>.
3 * Adopted for x86-64 by Andreas Jaeger <aj@suse.de>.
4 */
5
6#include <machine/asm.h>
7
8ENTRY(__finitel)
9	movl	16(%rsp),%eax
10	orl	$0xffff8000, %eax
11	incl	%eax
12	shrl	$31, %eax
13	ret
14END (__finitel)
15weak_alias (__finitel, finitel)
16hidden_def (__finitel)
17