blob: be0809536b998410bc57e8d3ec74ec34c4926450 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* $OpenBSD: s_ilogbf.S,v 1.3 2009/04/08 22:30:41 martynas Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
*/
#include <machine/asm.h>
ENTRY(ilogbf)
movss %xmm0,-4(%rsp)
flds -4(%rsp)
fxtract
fstp %st
fistpl -4(%rsp)
movl -4(%rsp),%eax
ret
|