nant's projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6fa35ebf6230ef92a6b1b7e8cccd13ae6ff62298
[dragonfly.git]
/
lib
/
libm
/
arch
/
i386
/
e_remainder.S
1
/*
2
* Written by J.T. Conklin <jtc@NetBSD.org>.
3
* Public domain.
4
*
5
* $NetBSD: e_remainder.S,v 1.7 2003/07/26 19:24:59 salo Exp $
6
*/
7
8
#include <machine/asm.h>
9
10
#include "abi.h"
11
12
ENTRY(remainder)
13
XMM_TWO_ARG_DOUBLE_PROLOGUE
14
fldl ARG_DOUBLE_TWO
15
fldl ARG_DOUBLE_ONE
16
1: fprem1
17
fstsw %ax
18
btw $10,%ax
19
jc 1b
20
fstp %st(1)
21
XMM_DOUBLE_EPILOGUE
22
ret
23
END(remainder)