summary refs log tree commit diff
path: root/sysdeps/i386/fpu/s_ilogbl.S
blob: 1dad93abebb0990aae6fd1b977bf7729874b11df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * 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)
	fwait
	popl	%eax

	ret
END (__ilogbl)
weak_alias (__ilogbl, ilogbl)