Update byteswap.h from bionic to match endian.h.

Change-Id: I79e445a167800ce083039d0cb65c5a966d7e6a72
This commit is contained in:
Dan Albert
2015-12-09 19:17:28 -08:00
parent a3a48fc603
commit 6e84c13895
2 changed files with 8 additions and 10 deletions

View File

@@ -28,11 +28,10 @@
#ifndef _BYTESWAP_H_
#define _BYTESWAP_H_
/* endian.h rather than sys/endian.h so we get the machine-specific file. */
#include <endian.h>
#include <sys/endian.h>
#define bswap_16(x) swap16(x)
#define bswap_32(x) swap32(x)
#define bswap_64(x) swap64(x)
#define bswap_16(x) __swap16(x)
#define bswap_32(x) __swap32(x)
#define bswap_64(x) __swap64(x)
#endif /* _BYTESWAP_H_ */

View File

@@ -28,11 +28,10 @@
#ifndef _BYTESWAP_H_
#define _BYTESWAP_H_
/* endian.h rather than sys/endian.h so we get the machine-specific file. */
#include <endian.h>
#include <sys/endian.h>
#define bswap_16(x) swap16(x)
#define bswap_32(x) swap32(x)
#define bswap_64(x) swap64(x)
#define bswap_16(x) __swap16(x)
#define bswap_32(x) __swap32(x)
#define bswap_64(x) __swap64(x)
#endif /* _BYTESWAP_H_ */