]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/libm-i387/s_ilogbl.S
update from main archive 961229
[thirdparty/glibc.git] / sysdeps / libm-i387 / s_ilogbl.S
CommitLineData
ee188d55
RM
1/*
2 * Written by J.T. Conklin <jtc@netbsd.org>.
3 * Changes for long double by Ulrich Drepper <drepper@cygnus.com>
4 * Public domain.
5 */
6
7#include <machine/asm.h>
8
9RCSID("$NetBSD: $")
10
11ENTRY(__ilogbl)
12 pushl %ebp
13 movl %esp,%ebp
14 subl $4,%esp
15
16 fldt 8(%ebp)
17 fxtract
18
19 fistpl -4(%ebp)
20 movl -4(%ebp),%eax
21
22 leave
23 ret
d38cd08c 24END (__ilogbl)
ee188d55 25weak_alias (__ilogbl, ilogbl)