aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
committerRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
commitce9af1cc5ea23f754587448cf35b5120c77bfeef (patch)
tree69e5eaba5e75ab909ed92d5045393471b8ff3c13 /include/platform.h
parentc170026700eabb10147dd848c45c06995b43a32e (diff)
parente837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff)
downloadbusybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 749169b0c..cc22f4fc9 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -277,6 +277,11 @@ typedef uint64_t bb__aliased_uint64_t FIX_ALIASING;
277#define put_unaligned_le32(val, buf) move_to_unaligned32(buf, SWAP_LE32(val)) 277#define put_unaligned_le32(val, buf) move_to_unaligned32(buf, SWAP_LE32(val))
278#define put_unaligned_be32(val, buf) move_to_unaligned32(buf, SWAP_BE32(val)) 278#define put_unaligned_be32(val, buf) move_to_unaligned32(buf, SWAP_BE32(val))
279 279
280/* unxz needs an aligned fixed-endian accessor.
281 * (however, the compiler does not realize it's aligned, the cast is still necessary)
282 */
283#define get_le32(u32p) ({ uint32_t v = *(bb__aliased_uint32_t*)(u32p); SWAP_LE32(v); })
284
280 285
281/* ---- Size-saving "small" ints (arch-dependent) ----------- */ 286/* ---- Size-saving "small" ints (arch-dependent) ----------- */
282 287