Permalink
Browse files

add Endian_SwapBE16/32/64

  • Loading branch information...
Jonathan Marshall
Jonathan Marshall committed Mar 19, 2012
1 parent e8a3006 commit ddd5ae0a17d008c1087ec61391a822302f069efe
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/utils/EndianSwap.h
View
@@ -87,10 +87,16 @@ static __inline__ uint64_t Endian_Swap64(uint64_t x) {
#define Endian_SwapLE16(X) (X)
#define Endian_SwapLE32(X) (X)
#define Endian_SwapLE64(X) (X)
+#define Endian_SwapBE16(X) Endian_Swap16(X)
+#define Endian_SwapBE32(X) Endian_Swap32(X)
+#define Endian_SwapBE64(X) Endian_Swap64(X)
#else
#define Endian_SwapLE16(X) Endian_Swap16(X)
#define Endian_SwapLE32(X) Endian_Swap32(X)
#define Endian_SwapLE64(X) Endian_Swap64(X)
+#define Endian_SwapBE16(X) (X)
+#define Endian_SwapBE32(X) (X)
+#define Endian_SwapBE64(X) (X)
#endif
/* Ends C function definitions when using C++ */

0 comments on commit ddd5ae0

Please sign in to comment.