summaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/s_finite.S
blob: 63c766a950a3ee7a711c01cc979dce5779d81d32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * 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)