xref: /haiku/src/system/libroot/posix/glibc/arch/x86_64/s_finitel.S (revision 21258e2674226d6aa732321b6f8494841895af5f)
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