summaryrefslogtreecommitdiff
path: root/lib/libm/arch/amd64/e_acos.S
diff options
context:
space:
mode:
authormortimer <mortimer@cvs.openbsd.org>2018-07-03 22:43:35 +0000
committermortimer <mortimer@cvs.openbsd.org>2018-07-03 22:43:35 +0000
commit8e58489b257b1aa53deea6bd33d90e6de1e2ab94 (patch)
tree94b4dbbda5a790cea831ab3057988e9a68655302 /lib/libm/arch/amd64/e_acos.S
parent7172f60910c3353e8a649d297b80d3bcab9cabfe (diff)
Add retguard macros to libm assembly.
ok deraadt
Diffstat (limited to 'lib/libm/arch/amd64/e_acos.S')
-rw-r--r--lib/libm/arch/amd64/e_acos.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libm/arch/amd64/e_acos.S b/lib/libm/arch/amd64/e_acos.S
index 01231e67c50..1a6b2cb0f61 100644
--- a/lib/libm/arch/amd64/e_acos.S
+++ b/lib/libm/arch/amd64/e_acos.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: e_acos.S,v 1.5 2016/09/12 19:47:01 guenther Exp $ */
+/* $OpenBSD: e_acos.S,v 1.6 2018/07/03 22:43:34 mortimer Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
@@ -10,6 +10,7 @@
/* acos = atan (sqrt(1 - x^2) / x) */
ENTRY(acos)
+ RETGUARD_SETUP(acos, r11)
XMM_ONE_ARG_DOUBLE_PROLOGUE
fldl ARG_DOUBLE_ONE /* x */
fld %st(0)
@@ -20,5 +21,6 @@ ENTRY(acos)
fxch %st(1)
fpatan
XMM_DOUBLE_EPILOGUE
+ RETGUARD_CHECK(acos, r11)
ret
END(acos)