aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/s_finite.S
blob: 1ae4aed451cbd04409a6a038fd286cc023daa1a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Written by Joe Keane <jgk@jgk.org>.
 */

#include <machine/asm.h>

ENTRY(__finite)
	movl	8(%esp),%eax
	movl    $0xFFEFFFFF,%ecx
	subl    %eax,%ecx
	xorl    %ecx,%eax
	shrl	$31, %eax
	ret
END (__finite)
weak_alias (__finite, finite)
hidden_def (__finite)