1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-01 22:41:32 +00:00

Add half-and-half access for SlicedInt32.

This commit is contained in:
Thomas Harte 2022-05-16 16:56:54 -04:00
parent 6f6e466c08
commit 13848ddbbc

View File

@ -72,6 +72,14 @@ template <> union SlicedInt<uint32_t> {
#endif
uint8_t b;
};
struct {
#if TARGET_RT_BIG_ENDIAN
SlicedInt<uint16_t> high, low;
#else
SlicedInt<uint16_t> low, high;
#endif
};
};
using SlicedInt16 = SlicedInt<uint16_t>;