mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-13 22:32:03 +00:00
Be overt about alignment.
This commit is contained in:
parent
50b5122969
commit
fb0241cf6e
@ -19,7 +19,7 @@
|
|||||||
namespace CPU {
|
namespace CPU {
|
||||||
|
|
||||||
/// Provides access to all intermediate parts of a larger int.
|
/// Provides access to all intermediate parts of a larger int.
|
||||||
template <typename Full, typename Half> union RegisterPair {
|
template <typename Full, typename Half> union alignas(Full) RegisterPair {
|
||||||
RegisterPair(Full v) : full(v) {}
|
RegisterPair(Full v) : full(v) {}
|
||||||
RegisterPair() {}
|
RegisterPair() {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user