aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2025-09-06 14:52:34 +0100
committerRon Yorston <rmy@pobox.com>2025-09-06 14:52:34 +0100
commit01fbdbf4b48cedf0869e010ef5ccb817d6677e42 (patch)
treec7a7819b76621b206d3d3aaf0b7ceb08d02ca853 /include
parentd8086da8bfbf76b9910d04e3e7f646ebc7f4b593 (diff)
parent53b3854e8141f4fc5fad10f180fc4fac2feee954 (diff)
downloadbusybox-w32-01fbdbf4b48cedf0869e010ef5ccb817d6677e42.tar.gz
busybox-w32-01fbdbf4b48cedf0869e010ef5ccb817d6677e42.tar.bz2
busybox-w32-01fbdbf4b48cedf0869e010ef5ccb817d6677e42.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
-rw-r--r--include/platform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 0b88f990b..0db8bf345 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -230,6 +230,8 @@
230# define SWAP_LE64(x) bb_bswap_64(x) 230# define SWAP_LE64(x) bb_bswap_64(x)
231# define IF_BIG_ENDIAN(...) __VA_ARGS__ 231# define IF_BIG_ENDIAN(...) __VA_ARGS__
232# define IF_LITTLE_ENDIAN(...) 232# define IF_LITTLE_ENDIAN(...)
233/* How do bytes a,b,c,d (sequential in memory) look if fetched into uint32_t? */
234# define PACK32_BYTES(a,b,c,d) (uint32_t)((d)+((c)<<8)+((b)<<16)+((a)<<24))
233#else 235#else
234# define SWAP_BE16(x) bswap_16(x) 236# define SWAP_BE16(x) bswap_16(x)
235# define SWAP_BE32(x) bswap_32(x) 237# define SWAP_BE32(x) bswap_32(x)
@@ -239,6 +241,7 @@
239# define SWAP_LE64(x) (x) 241# define SWAP_LE64(x) (x)
240# define IF_BIG_ENDIAN(...) 242# define IF_BIG_ENDIAN(...)
241# define IF_LITTLE_ENDIAN(...) __VA_ARGS__ 243# define IF_LITTLE_ENDIAN(...) __VA_ARGS__
244# define PACK32_BYTES(a,b,c,d) (uint32_t)((a)+((b)<<8)+((c)<<16)+((d)<<24))
242#endif 245#endif
243 246
244 247