From ebb48d019eec1c29a37a406e2db16d7565367faa Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 9 Feb 2014 18:29:13 -0500 Subject: Clean up some struct indentations Also cleaned up the indentations of some variable declarations. --- Source/Core/Common/BreakPoints.h | 22 +++++++++++----------- Source/Core/Common/CommonFuncs.h | 2 +- Source/Core/Common/FileUtil.h | 6 +++--- Source/Core/Common/MathUtil.h | 4 ++-- 4 files changed, 17 insertions(+), 17 deletions(-) (limited to 'Source/Core/Common') diff --git a/Source/Core/Common/BreakPoints.h b/Source/Core/Common/BreakPoints.h index a17cce5341..e9ac0b1667 100644 --- a/Source/Core/Common/BreakPoints.h +++ b/Source/Core/Common/BreakPoints.h @@ -14,9 +14,9 @@ class DebugInterface; struct TBreakPoint { - u32 iAddress; - bool bOn; - bool bTemporary; + u32 iAddress; + bool bOn; + bool bTemporary; }; struct TMemCheck @@ -29,18 +29,18 @@ struct TMemCheck u32 StartAddress; u32 EndAddress; - bool bRange; + bool bRange; - bool OnRead; - bool OnWrite; + bool OnRead; + bool OnWrite; - bool Log; - bool Break; + bool Log; + bool Break; - u32 numHits; + u32 numHits; void Action(DebugInterface *dbg_interface, u32 _iValue, u32 addr, - bool write, int size, u32 pc); + bool write, int size, u32 pc); }; // Code breakpoints. @@ -71,7 +71,7 @@ public: private: TBreakPoints m_BreakPoints; - u32 m_iBreakOnCount; + u32 m_iBreakOnCount; }; diff --git a/Source/Core/Common/CommonFuncs.h b/Source/Core/Common/CommonFuncs.h index 63bdc04dfb..1b385859d5 100644 --- a/Source/Core/Common/CommonFuncs.h +++ b/Source/Core/Common/CommonFuncs.h @@ -29,7 +29,7 @@ struct ArraySizeImpl : public std::extent #define b8(x) ( b4(x) | ( b4(x) >> 4) ) #define b16(x) ( b8(x) | ( b8(x) >> 8) ) #define b32(x) (b16(x) | (b16(x) >>16) ) -#define ROUND_UP_POW2(x) (b32(x - 1) + 1) +#define ROUND_UP_POW2(x) (b32(x - 1) + 1) #ifndef __GNUC_PREREQ #define __GNUC_PREREQ(a, b) 0 diff --git a/Source/Core/Common/FileUtil.h b/Source/Core/Common/FileUtil.h index 91de214a38..4fee364a2e 100644 --- a/Source/Core/Common/FileUtil.h +++ b/Source/Core/Common/FileUtil.h @@ -59,9 +59,9 @@ namespace File struct FSTEntry { bool isDirectory; - u64 size; // file length or number of entries from children - std::string physicalName; // name on disk - std::string virtualName; // name in FST names table + u64 size; // File length or number of entries from children + std::string physicalName; // Name on disk + std::string virtualName; // Name in FST names table std::vector children; }; diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h index 599701ca16..3e7b198c49 100644 --- a/Source/Core/Common/MathUtil.h +++ b/Source/Core/Common/MathUtil.h @@ -148,8 +148,8 @@ inline double pow2(double x) {return x * x;} float MathFloatVectorSum(const std::vector&); -#define ROUND_UP(x, a) (((x) + (a) - 1) & ~((a) - 1)) -#define ROUND_DOWN(x, a) ((x) & ~((a) - 1)) +#define ROUND_UP(x, a) (((x) + (a) - 1) & ~((a) - 1)) +#define ROUND_DOWN(x, a) ((x) & ~((a) - 1)) // Rounds down. 0 -> undefined inline u64 Log2(u64 val) -- cgit v1.2.3