summaryrefslogtreecommitdiff
path: root/lib/libm/arch/amd64/e_atan2.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_atan2.S
parent7172f60910c3353e8a649d297b80d3bcab9cabfe (diff)
Add retguard macros to libm assembly.
ok deraadt
Diffstat (limited to 'lib/libm/arch/amd64/e_atan2.S')
-rw-r--r--lib/libm/arch/amd64/e_atan2.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libm/arch/amd64/e_atan2.S b/lib/libm/arch/amd64/e_atan2.S
index 6fbcc6bcd4f..ddaec850886 100644
--- a/lib/libm/arch/amd64/e_atan2.S
+++ b/lib/libm/arch/amd64/e_atan2.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: e_atan2.S,v 1.4 2016/09/12 19:47:01 guenther Exp $ */
+/* $OpenBSD: e_atan2.S,v 1.5 2018/07/03 22:43:34 mortimer Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
@@ -9,10 +9,12 @@
#include "abi.h"
ENTRY(atan2)
+ RETGUARD_SETUP(atan2, r11)
XMM_TWO_ARG_DOUBLE_PROLOGUE
fldl ARG_DOUBLE_ONE
fldl ARG_DOUBLE_TWO
fpatan
XMM_DOUBLE_EPILOGUE
+ RETGUARD_CHECK(atan2, r11)
ret
END_STD(atan2)