]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / powerpc / powerpc32 / power5 / fpu / s_isnan.S
index 91337483d72a8260b418c121c4a495864ae19dc5..94bcccaa70d70c82425ae108ebfcfbfdcd8cbc8d 100644 (file)
@@ -1,5 +1,5 @@
 /* isnan().  PowerPC32 version.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008-2015 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -13,9 +13,8 @@
    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
+   <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
 #include <math_ldbl_opt.h>
@@ -28,8 +27,8 @@ EALIGN (__isnan, 4, 0)
        ori     r1,r1,0
        stfd    fp1,24(r1)      /* copy FPR to GPR */
        ori     r1,r1,0
-       lwz     r4,24(r1)
-       lwz     r5,28(r1)
+       lwz     r4,24+HIWORD(r1)
+       lwz     r5,24+LOWORD(r1)
        lis     r0,0x7ff0       /* const long r0 0x7ff00000 00000000 */
        clrlwi  r4,r4,1         /* x = fabs(x) */
        cmpw    cr7,r4,r0       /* if (fabs(x) =< inf) */
@@ -53,7 +52,7 @@ strong_alias (__isnan, __isnanl)
 weak_alias (__isnan, isnanl)
 #endif
 
-#ifndef IS_IN_libm
+#if !IS_IN (libm)
 # if LONG_DOUBLE_COMPAT(libc, GLIBC_2_0)
 compat_symbol (libc, __isnan, __isnanl, GLIBC_2_0);
 compat_symbol (libc, isnan, isnanl, GLIBC_2_0);