about summary refs log tree commit diff
path: root/sysdeps/m68k/bits/byteswap.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2015-01-25 10:08:04 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2015-01-25 23:35:51 +0100
commit24bb7432a7fe70c1fc607b60a389ce64aa903e0d (patch)
tree0a326a94195ff9186feb01bf76a7b4ea999a61f0 /sysdeps/m68k/bits/byteswap.h
parent9317ea653afc26402387cac67042f9890af6add2 (diff)
downloadglibc-24bb7432a7fe70c1fc607b60a389ce64aa903e0d.tar.gz
glibc-24bb7432a7fe70c1fc607b60a389ce64aa903e0d.tar.xz
glibc-24bb7432a7fe70c1fc607b60a389ce64aa903e0d.zip
m68k: force inlining bswap functions
Diffstat (limited to 'sysdeps/m68k/bits/byteswap.h')
-rw-r--r--sysdeps/m68k/bits/byteswap.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/m68k/bits/byteswap.h b/sysdeps/m68k/bits/byteswap.h
index 1e0b047783..a8deeaa514 100644
--- a/sysdeps/m68k/bits/byteswap.h
+++ b/sysdeps/m68k/bits/byteswap.h
@@ -29,7 +29,7 @@
 #define __bswap_constant_16(x) \
   ((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8))
 
-static __inline unsigned short int
+static __always_inline unsigned short int
 __bswap_16 (unsigned short int __bsx)
 {
   return __bswap_constant_16 (__bsx);
@@ -41,7 +41,7 @@ __bswap_16 (unsigned short int __bsx)
    (((x) & 0x0000ff00u) <<  8) | (((x) & 0x000000ffu) << 24))
 
 #if !defined(__mcoldfire__)
-static __inline unsigned int
+static __always_inline unsigned int
 __bswap_32 (unsigned int __bsx)
 {
   if (__builtin_constant_p (__bsx))
@@ -53,7 +53,7 @@ __bswap_32 (unsigned int __bsx)
   return __bsx;
 }
 #else
-static __inline unsigned int
+static __always_inline unsigned int
 __bswap_32 (unsigned int __bsx)
 {
   return __bswap_constant_32 (__bsx);
@@ -75,7 +75,7 @@ __bswap_32 (unsigned int __bsx)
 
 /* Swap bytes in 64 bit value.  */
 __extension__
-static __inline unsigned long long
+static __always_inline unsigned long long
 __bswap_64 (unsigned long long __bsx)
 {
   if (__builtin_constant_p (__bsx))