Add 64-bit swap functions

Change-Id: I23c0992defe1f79f95c62e033dc4b9e25e6bbead
This commit is contained in:
Andres Morales
2015-04-20 14:27:12 -07:00
committed by Arve Hjønnevåg
parent 499f47cc5d
commit a4580564ca

View File

@@ -69,6 +69,10 @@
#define ntohl(n) BE32(n)
#define htonl(h) BE32(h)
/* 64-bit network byte swap stuff */
#define htobe64(h) BE64(h)
#define be64toh(b) BE64(b)
// some memory access macros
#if __POWERPC__
#include <ppc_intrinsics.h>