xref: /netbsd/lib/libm/arch/i387/e_remainder.S (revision bf9ec67e)
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: e_remainder.S,v 1.6 2001/06/25 16:47:05 fvdl Exp $")
11
12ENTRY(__ieee754_remainder)
13	XMM_TWO_ARG_DOUBLE_PROLOGUE
14	fldl	ARG_DOUBLE_TWO
15	fldl	ARG_DOUBLE_ONE
161:	fprem1
17	fstsw	%ax
18	btw	$10,%ax
19	jc	1b
20	fstp	%st(1)
21	XMM_DOUBLE_EPILOGUE
22	ret
23