about summary refs log tree commit diff
path: root/ports/sysdeps
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-11-20 15:05:59 -0500
committerChris Metcalf <cmetcalf@tilera.com>2012-11-20 15:05:59 -0500
commit73deba6d3cef33b84e0cec722105867ee78662cd (patch)
treeb1d438b85312b59d4ff449d50c83c67badde0b00 /ports/sysdeps
parent3d45177146f8b1a2e279495eae012d515266f0c1 (diff)
downloadglibc-73deba6d3cef33b84e0cec722105867ee78662cd.tar.gz
glibc-73deba6d3cef33b84e0cec722105867ee78662cd.tar.xz
glibc-73deba6d3cef33b84e0cec722105867ee78662cd.zip
tile: Fix __bswap_64 return type in tile bits/byteswap.h
Diffstat (limited to 'ports/sysdeps')
-rw-r--r--ports/sysdeps/tile/bits/byteswap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/sysdeps/tile/bits/byteswap.h b/ports/sysdeps/tile/bits/byteswap.h
index 8e610c6fc8..4d1b25549e 100644
--- a/ports/sysdeps/tile/bits/byteswap.h
+++ b/ports/sysdeps/tile/bits/byteswap.h
@@ -23,10 +23,12 @@
 #ifndef _BITS_BYTESWAP_H
 #define _BITS_BYTESWAP_H 1
 
+#include <bits/types.h>
+
 /* gcc __builtin_bswap64() can constant-fold, etc, so always use it. */
 #define __bswap_16(x) ((unsigned short)(__builtin_bswap32(x) >> 16))
 #define __bswap_32(x) ((unsigned int)__builtin_bswap32(x))
-#define __bswap_64(x) ((unsigned long long)__builtin_bswap64(x))
+#define __bswap_64(x) ((__uint64_t)__builtin_bswap64(x))
 
 #define __bswap_constant_16(x) __bswap_16(x)
 #define __bswap_constant_32(x) __bswap_32(x)