about summary refs log tree commit diff
path: root/sysdeps/libm-i387/s_finitel.S
blob: d163965c0d554e37d022977961d65833d371faaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * 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
weak_alias (__finitel, finitel)