]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 11 Dec 2002 06:32:37 +0000 (06:32 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 11 Dec 2002 06:32:37 +0000 (06:32 +0000)
* sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
__builtin_constant_p to macro parameter.

ChangeLog
sysdeps/i386/bits/byteswap.h

index dccdad852aa08e82d2bc75ca72ac1c3288b53203..d7b5c63268d00692d90571b135d6e1140ee7d71a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-12-10  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
+       __builtin_constant_p to macro parameter.
+
        * sysdeps/generic/sigpause.c: Define all functions as weak.
        * sysdeps/posix/sigpause.c: Likewise.
 
index 980abc6bb7a6e0acdbc46596e5b28040559b4f40..db8b15d4d3676184abdd72e3af02b0453309229f 100644 (file)
      (__extension__                                                          \
       ({ union { __extension__ unsigned long long int __ll;                  \
                 unsigned long int __l[2]; } __w, __r;                        \
-        __w.__ll = (x);                                                      \
-         if (__builtin_constant_p (__w.__ll))                                \
-          __r.__ll = __bswap_constant_64 (__w.__ll);                         \
+         if (__builtin_constant_p (x))                                       \
+          __r.__ll = __bswap_constant_64 (x);                                \
         else                                                                 \
           {                                                                  \
+            __w.__ll = (x);                                                  \
             __r.__l[0] = __bswap_32 (__w.__l[1]);                            \
             __r.__l[1] = __bswap_32 (__w.__l[0]);                            \
           }                                                                  \
This page took 2.194452 seconds and 5 git commands to generate.