summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MathUtil.h
diff options
context:
space:
mode:
authorBhaaL <bhaal@0x1337.org>2017-01-04 12:45:40 +0100
committerBhaaL <bhaal@0x1337.org>2017-01-05 12:55:13 +0100
commit23d99f2f2c6f3e16dce2371141702d07bef40e95 (patch)
tree88d0f4139cc7b56cc6dff3510c242a5cc2c79f15 /Source/Core/Common/MathUtil.h
parent41101be545d4e2f10c77503a14b5236c870428ac (diff)
specify custom brace style to fix unions
BreakBeforeBraces: Allman apparently includes all styles, except for AfterUnion (which is false) when using clang-format -dump-config
Diffstat (limited to 'Source/Core/Common/MathUtil.h')
-rw-r--r--Source/Core/Common/MathUtil.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h
index 71bc985456..b9a99f6b52 100644
--- a/Source/Core/Common/MathUtil.h
+++ b/Source/Core/Common/MathUtil.h
@@ -57,14 +57,16 @@ static const u64 DOUBLE_SIGN = 0x8000000000000000ULL, DOUBLE_EXP = 0x7FF00000000
static const u32 FLOAT_SIGN = 0x80000000, FLOAT_EXP = 0x7F800000, FLOAT_FRAC = 0x007FFFFF,
FLOAT_ZERO = 0x00000000;
-union IntDouble {
+union IntDouble
+{
double d;
u64 i;
explicit IntDouble(u64 _i) : i(_i) {}
explicit IntDouble(double _d) : d(_d) {}
};
-union IntFloat {
+union IntFloat
+{
float f;
u32 i;