mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-09 15:39:08 +00:00
Add half-and-half access for SlicedInt32.
This commit is contained in:
parent
6f6e466c08
commit
13848ddbbc
@ -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>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user