]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/i386/fpu/s_asinhf.S
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / i386 / fpu / s_asinhf.S
index 86a49a3fa978d0ff07274b17633db2c765a81395..cd2359c22601b47eea0c784fb105e6705174ced1 100644 (file)
@@ -1,5 +1,5 @@
 /* ix87 specific implementation of arcsinh.
-   Copyright (C) 1996-1997, 1999, 2005, 2012 Free Software Foundation, Inc.
+   Copyright (C) 1996-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #include <machine/asm.h>
+#include <libm-alias-float.h>
 
        .section .rodata
 
@@ -100,7 +101,16 @@ ENTRY(__asinhf)
 4:     fld     %st                     // x : x
        faddl   MO(huge)                // huge+x : x
        fstp    %st(0)                  // x
-       ret
+       cmpl    $0x00800000, %eax
+       jae     8f
+       subl    $4, %esp
+       cfi_adjust_cfa_offset (4)
+       fld     %st(0)
+       fmul    %st(0)
+       fstps   (%esp)
+       addl    $4, %esp
+       cfi_adjust_cfa_offset (-4)
+8:     ret
 
        // |x| > 2^14 => y = sign(x) * (log(|x|) + log(2))
        .align ALIGNARG(4)
@@ -127,4 +137,4 @@ ENTRY(__asinhf)
        fchs
 4:     ret
 END(__asinhf)
-weak_alias (__asinhf, asinhf)
+libm_alias_float (__asinh, asinh)