From 13848ddbbccbd2da0ee4bd43a32d43eed196afb9 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 16 May 2022 16:56:54 -0400 Subject: [PATCH] Add half-and-half access for SlicedInt32. --- Numeric/RegisterSizes.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Numeric/RegisterSizes.hpp b/Numeric/RegisterSizes.hpp index 39321ffc0..2c0363595 100644 --- a/Numeric/RegisterSizes.hpp +++ b/Numeric/RegisterSizes.hpp @@ -72,6 +72,14 @@ template <> union SlicedInt { #endif uint8_t b; }; + + struct { +#if TARGET_RT_BIG_ENDIAN + SlicedInt high, low; +#else + SlicedInt low, high; +#endif + }; }; using SlicedInt16 = SlicedInt;