Renamed some internal functions to avoid name conflicts when some third-party code is #included.

This commit is contained in:
Alex Szpakowski
2015-08-03 20:27:46 -03:00
parent f2b4438a57
commit 99acec83c9
5 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -45,12 +45,12 @@ typedef uint32_t uint32;
typedef int64_t int64;
typedef uint64_t uint64;
static inline uint16 swap16(uint16 x)
static inline uint16 swapuint16(uint16 x)
{
return (x >> 8) | (x << 8);
}
static inline uint32 swap32(uint32 x)
static inline uint32 swapuint32(uint32 x)
{
return ((x & 0x000000FF) << 24) |
((x & 0x0000FF00) << 8) |
@@ -58,7 +58,7 @@ static inline uint32 swap32(uint32 x)
((x & 0xFF000000) >> 24);
}
static inline uint64 swap64(uint64 x)
static inline uint64 swapuint64(uint64 x)
{
return ((x << 56) & 0xFF00000000000000ULL) | ((x << 40) & 0x00FF000000000000ULL) |
((x << 24) & 0x0000FF0000000000ULL) | ((x << 8) & 0x000000FF00000000ULL) |