summaryrefslogtreecommitdiff
path: root/lib/libm/arch/i387/s_finite.S
blob: b9b529fd8a480005a850ff69c1bb9ee9a490f19e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Public domain.
 */

#include <machine/asm.h>

RCSID("$NetBSD: s_finite.S,v 1.4.6.1 1996/06/04 18:30:16 jtc Exp $")

ENTRY(finite)
	movl	8(%esp),%eax
	andl	$0x7ff00000, %eax
	cmpl	$0x7ff00000, %eax
	setne	%al
	andl	$0x000000ff, %eax
	ret