summaryrefslogtreecommitdiff
path: root/sysdeps/libm-i387/s_ilogbl.S
blob: adc88aababb35d56f8b3eeb81887c81b1204f8c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Changes for long double by Ulrich Drepper <drepper@cygnus.com>
 * Public domain.
 */

#include <machine/asm.h>

RCSID("$NetBSD: $")

ENTRY(__ilogbl)
	fldt	4(%esp)
	fxtract
	pushl	%eax
	fstp	%st

	fistpl	(%esp)
	popl	%eax

	ret
END (__ilogbl)
weak_alias (__ilogbl, ilogbl)