projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
libm: Match ENTRY()s with END()s.
[dragonfly.git]
/
lib
/
libm
/
arch
/
i386
/
s_ilogb.S
1
/*
2
* Written by J.T. Conklin <jtc@NetBSD.org>.
3
* Public domain.
4
*
5
* $NetBSD: s_ilogb.S,v 1.7 2003/07/26 19:25:02 salo Exp $
6
*/
7
8
#include <machine/asm.h>
9
10
ENTRY(ilogb)
11
#ifdef __i386__
12
pushl %ebp
13
movl %esp,%ebp
14
subl $4,%esp
15
16
fldl 8(%ebp)
17
fxtract
18
fstp %st
19
20
fistpl -4(%ebp)
21
movl -4(%ebp),%eax
22
23
leave
24
#else
25
movsd %xmm0,-8(%rsp)
26
fldl -8(%rsp)
27
fxtract
28
fstp %st
29
fistpl -8(%rsp)
30
movl -8(%rsp),%eax
31
#endif
32
ret
33
END(ilogb)