[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r16348 - in /fsf/trunk/ports: ChangeLog.m68k sysdeps/m68k/bits/byteswap.h



Author: eglibc
Date: Sat Dec 24 00:06:58 2011
New Revision: 16348

Log:
Import glibc-ports-mainline for 2011-12-24

Modified:
    fsf/trunk/ports/ChangeLog.m68k
    fsf/trunk/ports/sysdeps/m68k/bits/byteswap.h

Modified: fsf/trunk/ports/ChangeLog.m68k
==============================================================================
--- fsf/trunk/ports/ChangeLog.m68k (original)
+++ fsf/trunk/ports/ChangeLog.m68k Sat Dec 24 00:06:58 2011
@@ -1,3 +1,8 @@
+2011-12-23  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
+
+	* sysdeps/m68k/bits/byteswap.h (__bswap_constant_64): Protect long
+	long constant with __extension__.
+
 2011-12-04  Thorsten Glaser  <tg@xxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/m68k/syscall.S: Allow six arguments.

Modified: fsf/trunk/ports/sysdeps/m68k/bits/byteswap.h
==============================================================================
--- fsf/trunk/ports/sysdeps/m68k/bits/byteswap.h (original)
+++ fsf/trunk/ports/sysdeps/m68k/bits/byteswap.h Sat Dec 24 00:06:58 2011
@@ -28,7 +28,7 @@
    because GCC is smart enough to generate optimal assembler output, and
    this allows for better cse.  */
 #define __bswap_constant_16(x) \
-     ((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8))
+  ((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8))
 
 static __inline unsigned short int
 __bswap_16 (unsigned short int __bsx)
@@ -38,8 +38,8 @@
 
 /* Swap bytes in 32 bit value.  */
 #define __bswap_constant_32(x) \
-     ((((x) & 0xff000000u) >> 24) | (((x) & 0x00ff0000u) >>  8) |	      \
-      (((x) & 0x0000ff00u) <<  8) | (((x) & 0x000000ffu) << 24))
+  ((((x) & 0xff000000u) >> 24) | (((x) & 0x00ff0000u) >>  8) |		      \
+   (((x) & 0x0000ff00u) <<  8) | (((x) & 0x000000ffu) << 24))
 
 #if !defined(__mcoldfire__)
 static __inline unsigned int
@@ -64,14 +64,15 @@
 #if defined __GNUC__ && __GNUC__ >= 2
 /* Swap bytes in 64 bit value.  */
 # define __bswap_constant_64(x) \
-     ((((x) & 0xff00000000000000ull) >> 56)				      \
-      | (((x) & 0x00ff000000000000ull) >> 40)				      \
-      | (((x) & 0x0000ff0000000000ull) >> 24)				      \
-      | (((x) & 0x000000ff00000000ull) >> 8)				      \
-      | (((x) & 0x00000000ff000000ull) << 8)				      \
-      | (((x) & 0x0000000000ff0000ull) << 24)				      \
-      | (((x) & 0x000000000000ff00ull) << 40)				      \
-      | (((x) & 0x00000000000000ffull) << 56))
+  __extension__								      \
+  ((((x) & 0xff00000000000000ull) >> 56)				      \
+   | (((x) & 0x00ff000000000000ull) >> 40)				      \
+   | (((x) & 0x0000ff0000000000ull) >> 24)				      \
+   | (((x) & 0x000000ff00000000ull) >> 8)				      \
+   | (((x) & 0x00000000ff000000ull) << 8)				      \
+   | (((x) & 0x0000000000ff0000ull) << 24)				      \
+   | (((x) & 0x000000000000ff00ull) << 40)				      \
+   | (((x) & 0x00000000000000ffull) << 56))
 
 /* Swap bytes in 64 bit value.  */
 static __inline unsigned long long

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits