summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MathUtil.cpp
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.cpp
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.cpp')
-rw-r--r--Source/Core/Common/MathUtil.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Common/MathUtil.cpp b/Source/Core/Common/MathUtil.cpp
index 1f0983889c..bdb45e89f9 100644
--- a/Source/Core/Common/MathUtil.cpp
+++ b/Source/Core/Common/MathUtil.cpp
@@ -104,7 +104,8 @@ const int frsqrte_expected_dec[] = {
double ApproximateReciprocalSquareRoot(double val)
{
- union {
+ union
+ {
double valf;
s64 vali;
};
@@ -178,7 +179,8 @@ double ApproximateReciprocal(double val)
// The workaround for this is to just use namespace std within this function's scope
// That way on real toolchains it will use the std:: variant like normal.
using namespace std;
- union {
+ union
+ {
double valf;
s64 vali;
};