diff options
author | mortimer <mortimer@cvs.openbsd.org> | 2018-07-03 22:43:35 +0000 |
---|---|---|
committer | mortimer <mortimer@cvs.openbsd.org> | 2018-07-03 22:43:35 +0000 |
commit | 8e58489b257b1aa53deea6bd33d90e6de1e2ab94 (patch) | |
tree | 94b4dbbda5a790cea831ab3057988e9a68655302 /lib/libm/arch/amd64/s_rint.S | |
parent | 7172f60910c3353e8a649d297b80d3bcab9cabfe (diff) |
Add retguard macros to libm assembly.
ok deraadt
Diffstat (limited to 'lib/libm/arch/amd64/s_rint.S')
-rw-r--r-- | lib/libm/arch/amd64/s_rint.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libm/arch/amd64/s_rint.S b/lib/libm/arch/amd64/s_rint.S index e1716eb52ff..9462e7be82c 100644 --- a/lib/libm/arch/amd64/s_rint.S +++ b/lib/libm/arch/amd64/s_rint.S @@ -1,4 +1,4 @@ -/* $OpenBSD: s_rint.S,v 1.3 2016/09/12 19:47:01 guenther Exp $ */ +/* $OpenBSD: s_rint.S,v 1.4 2018/07/03 22:43:34 mortimer Exp $ */ /* * Written by J.T. Conklin <jtc@NetBSD.org>. * Public domain. @@ -9,9 +9,11 @@ #include "abi.h" ENTRY(rint) + RETGUARD_SETUP(rint, r11) XMM_ONE_ARG_DOUBLE_PROLOGUE fldl ARG_DOUBLE_ONE frndint XMM_DOUBLE_EPILOGUE + RETGUARD_CHECK(rint, r11) ret END_STD(rint) |