summaryrefslogtreecommitdiff
path: root/lib/libm/arch/i387/s_finitef.S
blob: 111a148611c07010bc2d1ab41ee978b3c41871d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$OpenBSD: s_finitef.S,v 1.3 2005/08/02 11:17:31 espie Exp $ */
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Public domain.
 */

#include <machine/asm.h>

ENTRY(finitef)
	movl	4(%esp),%eax
	andl	$0x7f800000, %eax
	cmpl	$0x7f800000, %eax
	setne	%al
	andl	$0x000000ff, %eax
	ret