public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED PATCH] tile: Fix __bswap_64 return type in tile bits/byteswap.h
@ 2012-11-20 20:01 Chris Metcalf
  0 siblings, 0 replies; only message in thread
From: Chris Metcalf @ 2012-11-20 20:01 UTC (permalink / raw)
  To: libc-ports

2012-11-20  Chris Metcalf  <cmetcalf@tilera.com>

	* sysdeps/tile/bits/byteswap.h: Include <bits/types.h>.
	(__bswap_64): Use __uint64_t instead of unsigned long long int.

---
 ports/sysdeps/tile/bits/byteswap.h |    4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ports/sysdeps/tile/bits/byteswap.h b/ports/sysdeps/tile/bits/byteswap.h
index 8e610c6..4d1b255 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)
-- 
1.7.10.3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-20 20:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-20 20:01 [COMMITTED PATCH] tile: Fix __bswap_64 return type in tile bits/byteswap.h Chris Metcalf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).