mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
util: Replace TAB with space in compiler.h
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19646>
This commit is contained in:
parent
6eb2512fab
commit
df3ca74053
1 changed files with 6 additions and 6 deletions
|
|
@ -48,21 +48,21 @@
|
||||||
#if UTIL_ARCH_BIG_ENDIAN
|
#if UTIL_ARCH_BIG_ENDIAN
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include <byteswap.h>
|
#include <byteswap.h>
|
||||||
#define CPU_TO_LE32( x ) bswap_32( x )
|
#define CPU_TO_LE32( x ) bswap_32( x )
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#include <CoreFoundation/CFByteOrder.h>
|
#include <CoreFoundation/CFByteOrder.h>
|
||||||
#define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x )
|
#define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x )
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#define CPU_TO_LE32( x ) htole32( x )
|
#define CPU_TO_LE32( x ) htole32( x )
|
||||||
#else /*__linux__ */
|
#else /*__linux__ */
|
||||||
#include <sys/endian.h>
|
#include <sys/endian.h>
|
||||||
#define CPU_TO_LE32( x ) bswap32( x )
|
#define CPU_TO_LE32( x ) bswap32( x )
|
||||||
#endif /*__linux__*/
|
#endif /*__linux__*/
|
||||||
#else
|
#else
|
||||||
#define CPU_TO_LE32( x ) ( x )
|
#define CPU_TO_LE32( x ) ( x )
|
||||||
#endif
|
#endif
|
||||||
#define LE32_TO_CPU( x ) CPU_TO_LE32( x )
|
#define LE32_TO_CPU( x ) CPU_TO_LE32( x )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue