xref: /minix/lib/libm/arch/i387/s_logb.S (revision 0a6a1f1d)
1/*
2 * Written by J.T. Conklin <jtc@NetBSD.org>.
3 * Public domain.
4 */
5
6#include <machine/asm.h>
7
8#include "abi.h"
9
10RCSID("$NetBSD: s_logb.S,v 1.6 2003/07/26 19:25:02 salo Exp $")
11
12ENTRY(logb)
13	XMM_ONE_ARG_DOUBLE_PROLOGUE
14	fldl	ARG_DOUBLE_ONE
15	fxtract
16	fstp	%st
17	XMM_DOUBLE_EPILOGUE
18	ret
19