// // RegisterSizes.hpp // Clock Signal // // Created by Thomas Harte on 14/05/2017. // Copyright 2017 Thomas Harte. All rights reserved. // #ifndef RegisterSizes_hpp #define RegisterSizes_hpp #include namespace CPU { template union RegisterPair { RegisterPair(Full v) : full(v) {} RegisterPair() {} Full full; #pragma pack(push, 1) #if TARGET_RT_BIG_ENDIAN struct { Half high, low; } halves; #else struct { Half low, high; } halves; #endif #pragma pack(pop) }; typedef RegisterPair RegisterPair16; typedef RegisterPair RegisterPair32; } #endif /* RegisterSizes_hpp */