Add 64-bit swap functions
Change-Id: I23c0992defe1f79f95c62e033dc4b9e25e6bbead
This commit is contained in:
committed by
Arve Hjønnevåg
parent
499f47cc5d
commit
a4580564ca
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user