summaryrefslogtreecommitdiff
path: root/lib/scudo/scudo_utils.cpp
diff options
context:
space:
mode:
authorDavid L. Jones <dlj@google.com>2017-11-15 01:40:05 +0000
committerDavid L. Jones <dlj@google.com>2017-11-15 01:40:05 +0000
commit29961b5a9b00642c770ae522a336cf2cc6077398 (patch)
treed5d975f68cc9a5b4eaa8df4bca59c298988eaede /lib/scudo/scudo_utils.cpp
parent5cdb7458cb1d6fc8fc83dd5a177658f1284f5d29 (diff)
parent65964b0190520f92123c3b1adb7dce481179909b (diff)
downloadcompiler-rt-29961b5a9b00642c770ae522a336cf2cc6077398.tar.gz
Creating branches/google/testing and tags/google/testing/2017-11-14 from r317716google/testing
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/google/testing@318248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/scudo/scudo_utils.cpp')
-rw-r--r--lib/scudo/scudo_utils.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/scudo/scudo_utils.cpp b/lib/scudo/scudo_utils.cpp
index 093eafe8e..653b6c8fa 100644
--- a/lib/scudo/scudo_utils.cpp
+++ b/lib/scudo/scudo_utils.cpp
@@ -90,8 +90,7 @@ typedef struct {
u32 Edx;
} CPUIDRegs;
-static void getCPUID(CPUIDRegs *Regs, u32 Level)
-{
+static void getCPUID(CPUIDRegs *Regs, u32 Level) {
__get_cpuid(Level, &Regs->Eax, &Regs->Ebx, &Regs->Ecx, &Regs->Edx);
}
@@ -118,8 +117,7 @@ CPUIDRegs getCPUFeatures() {
# define bit_SSE4_2 bit_SSE42 // clang and gcc have different defines.
# endif
-bool testCPUFeature(CPUFeature Feature)
-{
+bool testCPUFeature(CPUFeature Feature) {
CPUIDRegs FeaturesRegs = getCPUFeatures();
switch (Feature) {