summaryrefslogtreecommitdiff
path: root/src/jit/fp.h
diff options
context:
space:
mode:
authorMichelle McDaniel <adiaaida@gmail.com>2016-06-24 14:10:52 -0700
committerMichelle McDaniel <adiaaida@gmail.com>2016-07-29 09:16:39 -0700
commita1fa8c14cae981369dccf2f361b01959b215ad8f (patch)
treecfbd2c5020bacd9422a64338f513350057e3cae0 /src/jit/fp.h
parenta812669c5737a336745f42c099a1a8a6e1aafa4f (diff)
downloadcoreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.tar.gz
coreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.tar.bz2
coreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.zip
Massage code for clang-format
This change starts the process of updating the jit code to make it ready for being formatted by clang-format. Changes mostly include reflowing comments that go past our column limit and moving comments around ifdefs so clang-format does not modify the indentation. Additionally, some header files are manually reformatted for pointer alignment and marked as clang-format off so that we do not lose the current formatting.
Diffstat (limited to 'src/jit/fp.h')
-rw-r--r--src/jit/fp.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/jit/fp.h b/src/jit/fp.h
index 44bf684362..eb8a79613d 100644
--- a/src/jit/fp.h
+++ b/src/jit/fp.h
@@ -2,7 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-
#ifndef _JIT_FP
#define _JIT_FP
@@ -12,13 +11,12 @@
enum dummyFPenum
{
- #define REGDEF(name, rnum, mask, sname) dummmy_##name = rnum,
- #include "registerfp.h"
+#define REGDEF(name, rnum, mask, sname) dummmy_##name = rnum,
+#include "registerfp.h"
FP_VIRTUALREGISTERS,
};
-
// FlatFPStateX87 holds the state of the virtual register file. For each
// virtual register we keep track to which physical register we're
// mapping. We also keep track of the physical stack.
@@ -42,10 +40,10 @@ public:
unsigned Pop ();
void Push (unsigned uEntry);
bool IsEmpty ();
-
+
// Debug/test methods
static bool AreEqual (FlatFPStateX87* pSrc, FlatFPStateX87* pDst);
- #ifdef DEBUG
+#ifdef DEBUG
bool IsValidEntry (unsigned uEntry);
bool IsConsistent ();
void UpdateMappingFromStack ();
@@ -60,16 +58,16 @@ public:
{
m_bIgnoreConsistencyChecks = bIgnore;
}
- #else
+#else
inline void IgnoreConsistencyChecks(bool bIgnore)
- {
- }
- #endif
+ {
+ }
+#endif
unsigned m_uVirtualMap[FP_VIRTUALREGISTERS];
unsigned m_uStack[FP_PHYSICREGISTERS];
unsigned m_uStackSize;
-};
-
+};
+
#endif // FEATURE_STACK_FP_X87
#endif