summary refs log tree commit diff
path: root/sysdeps/libm-i387/s_finitel.S
blob: 944b2497e266042eb2ea7002fbd89760421d4cbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Public domain.
 *
 * Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
 */

#include <machine/asm.h>

RCSID("$NetBSD: $")

ENTRY(__finitel)
	movl	12(%esp),%eax
	andl	$0x7fff, %eax
	cmpl	$0x7fff, %eax
	setne	%al
	andl	$0x000000ff, %eax
	ret
END (__finitel)
weak_alias (__finitel, finitel)