diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 20:07:48 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 20:07:48 +0000 |
commit | ad19c620767174a56d7b25615d3a54b7486f1cca (patch) | |
tree | 113406f3d7178f4979abc5a4960bb6f979648e9b /sysdeps/i386/fpu/s_truncf.S | |
parent | e1777dde9106cbd223b56d6ddcf8464093679c81 (diff) | |
parent | 5fbd1a9aad274b17f2788dd22e5306cba07dab71 (diff) |
Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into tschwinge/Roger_Whittaker
Diffstat (limited to 'sysdeps/i386/fpu/s_truncf.S')
-rw-r--r-- | sysdeps/i386/fpu/s_truncf.S | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sysdeps/i386/fpu/s_truncf.S b/sysdeps/i386/fpu/s_truncf.S index cbf257a949..14d2a81835 100644 --- a/sysdeps/i386/fpu/s_truncf.S +++ b/sysdeps/i386/fpu/s_truncf.S @@ -1,5 +1,5 @@ /* Truncate float value. - Copyright (C) 1997-2016 Free Software Foundation, Inc. + Copyright (C) 1997-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -18,20 +18,21 @@ <http://www.gnu.org/licenses/>. */ #include <machine/asm.h> +#include <libm-alias-float.h> ENTRY(__truncf) flds 4(%esp) - subl $8, %esp - cfi_adjust_cfa_offset (8) - fstcw 4(%esp) + subl $32, %esp + cfi_adjust_cfa_offset (32) + fnstenv 4(%esp) movl $0xc00, %edx orl 4(%esp), %edx movl %edx, (%esp) fldcw (%esp) frndint - fldcw 4(%esp) - addl $8, %esp - cfi_adjust_cfa_offset (-8) + fldenv 4(%esp) + addl $32, %esp + cfi_adjust_cfa_offset (-32) ret END(__truncf) -weak_alias (__truncf, truncf) +libm_alias_float (__trunc, trunc) |