1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-23 05:19:20 +00:00

Ensure <=> is implemented.

This commit is contained in:
Thomas Harte
2025-10-01 22:01:35 -04:00
parent f279bebc1a
commit abd1f10395

View File

@@ -23,7 +23,9 @@ template <typename Full, typename Half> union alignas(Full) alignas(Half) Regist
RegisterPair() = default;
Full full;
auto operator <=>(const RegisterPair &rhs) const = default;
auto operator <=>(const RegisterPair &rhs) const {
return full <=> rhs.full;
}
#if TARGET_RT_BIG_ENDIAN
struct {
Half high, low;