blob: 2c1f42ba0df77632733f57d6b0fcdd4127be5f71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* $OpenBSD: e_remainderf.S,v 1.5 2018/07/03 22:43:34 mortimer Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
*/
#include <machine/asm.h>
#include "abi.h"
ENTRY(remainderf)
RETGUARD_SETUP(remainderf, r11)
XMM_TWO_ARG_FLOAT_PROLOGUE
flds ARG_FLOAT_TWO
flds ARG_FLOAT_ONE
1: fprem1
fstsw %ax
btw $10,%ax
jc 1b
fstp %st(1)
XMM_FLOAT_EPILOGUE
RETGUARD_CHECK(remainderf, r11)
ret
END_STD(remainderf)
|