]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/i386/fpu/s_frexpf.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / i386 / fpu / s_frexpf.S
index 53dcacff8a624f4e69f76a678def4669bae1d8f1..501dd3bfcd4e2fd482c3e94a566779d8dce3e1a2 100644 (file)
@@ -1,5 +1,5 @@
 /* ix87 specific frexp implementation for float.
-   Copyright (C) 1997-2013 Free Software Foundation, Inc.
+   Copyright (C) 1997-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -18,8 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <machine/asm.h>
-#include "bp-sym.h"
-#include "bp-asm.h"
+#include <libm-alias-float.h>
 
        .section .rodata
 
@@ -34,13 +33,12 @@ two25:      .byte 0, 0, 0, 0x4c
 #define MO(op) op
 #endif
 
-#define PARMS  LINKAGE         /* no space for saved regs */
+#define PARMS  4               /* no space for saved regs */
 #define VAL    PARMS
 #define EXPP   VAL+4
 
        .text
-ENTRY (BP_SYM (__frexpf))
-       ENTER
+ENTRY (__frexpf)
 
        movl    VAL(%esp), %eax
        xorl    %ecx, %ecx
@@ -75,11 +73,9 @@ ENTRY (BP_SYM (__frexpf))
        /* Store %ecx in the variable pointed to by the second argument,
           get the factor from the stack and return.  */
 1:     movl    EXPP(%esp), %eax
-       CHECK_BOUNDS_BOTH_WIDE (%eax, EXPP(%esp), $4)
        flds    VAL(%esp)
        movl    %ecx, (%eax)
 
-       LEAVE
        ret
-END (BP_SYM (__frexpf))
-weak_alias (BP_SYM (__frexpf), BP_SYM (frexpf))
+END (__frexpf)
+libm_alias_float (__frexp, frexp)