]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/i386/fpu/e_atanhf.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / i386 / fpu / e_atanhf.S
index 10ce6aed9ef3e5b3367c9b01c294dba91bebe759..e9bc5ffbca88a88eecf07b0ca36b38d74241d6a3 100644 (file)
@@ -1,5 +1,5 @@
 /* ix87 specific implementation of arctanh function.
-   Copyright (C) 1996, 1999, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1996-2020 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
 
 #include <machine/asm.h>
+#include <i386-math-asm.h>
 
-#ifdef __ELF__
        .section .rodata
-#else
-       .text
-#endif
 
        .align ALIGNARG(4)
-       ASM_TYPE_DIRECTIVE(half,@object)
+       .type half,@object
 half:  .double 0.5
        ASM_SIZE_DIRECTIVE(half)
-       ASM_TYPE_DIRECTIVE(one,@object)
+       .type one,@object
 one:   .double 1.0
        ASM_SIZE_DIRECTIVE(one)
-       ASM_TYPE_DIRECTIVE(limit,@object)
+       .type limit,@object
 limit: .double 0.29
        ASM_SIZE_DIRECTIVE(limit)
        .align ALIGNARG(4)
-       ASM_TYPE_DIRECTIVE(ln2_2,@object)
+       .type ln2_2,@object
 ln2_2: .tfloat 0.3465735902799726547086160
        ASM_SIZE_DIRECTIVE(ln2_2)
 
+DEFINE_FLT_MIN
+
 #ifdef PIC
 #define MO(op) op##@GOTOFF(%edx)
 #else
@@ -82,6 +80,7 @@ ENTRY(__ieee754_atanhf)
        sahf
        jae     4f
        fyl2xp1                 // 0.5*ln2*ld(1+2*|x|+(2*|x|^2)/(1-|x|))
+       FLT_CHECK_FORCE_UFLOW_NONNEG
        jecxz   3f
        fchs                    // 0.5*ln2*ld(1+2*x+(2*x^2)/(1-x))
 3:     ret
@@ -107,3 +106,4 @@ ENTRY(__ieee754_atanhf)
 5:     flds    4(%esp)
        ret
 END(__ieee754_atanhf)
+strong_alias (__ieee754_atanhf, __atanhf_finite)