Skip to content

Commit 13d3602

Browse files
committed
Formatting
1 parent 12cad6c commit 13d3602

File tree

1 file changed

+10
-13
lines changed
  • compiler-rt/lib/builtins/cpu_model

1 file changed

+10
-13
lines changed

compiler-rt/lib/builtins/cpu_model/x86.c

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,9 @@ static void detectX86FamilyModel(unsigned EAX, unsigned *Family,
319319

320320
#define testFeature(F) (Features[F / 32] & (1 << (F % 32))) != 0
321321

322-
static const char *getIntelProcessorTypeAndSubtype(unsigned Family,
323-
unsigned Model,
324-
const unsigned *Features,
325-
enum ProcessorTypes *Type,
326-
enum ProcessorSubtypes *Subtype) {
322+
static const char *getIntelProcessorTypeAndSubtype(
323+
unsigned Family, unsigned Model, const unsigned *Features,
324+
enum ProcessorTypes *Type, enum ProcessorSubtypes *Subtype) {
327325
// We select CPU strings to match the code in Host.cpp, but we don't use them
328326
// in compiler-rt.
329327
const char *CPU = 0;
@@ -666,11 +664,9 @@ static const char *getIntelProcessorTypeAndSubtype(unsigned Family,
666664
return CPU;
667665
}
668666

669-
static const char *getAMDProcessorTypeAndSubtype(unsigned Family,
670-
unsigned Model,
671-
const unsigned *Features,
672-
enum ProcessorTypes *Type,
673-
enum ProcessorSubtypes *Subtype) {
667+
static const char *getAMDProcessorTypeAndSubtype(
668+
unsigned Family, unsigned Model, const unsigned *Features,
669+
enum ProcessorTypes *Type, enum ProcessorSubtypes *Subtype) {
674670
const char *CPU = 0;
675671

676672
switch (Family) {
@@ -1161,12 +1157,13 @@ __attribute__((visibility("hidden")))
11611157
#endif
11621158
struct __processor_model {
11631159
unsigned int __cpu_vendor;
1164-
enum ProcessorTypes __cpu_type;
1165-
enum ProcessorSubtypes __cpu_subtype;
1160+
enum ProcessorTypes __cpu_type;
1161+
enum ProcessorSubtypes __cpu_subtype;
11661162
unsigned int __cpu_features[1];
11671163
} __cpu_model = {0, 0, 0, {0}};
11681164

1169-
static_assert(sizeof(__cpu_model) == 16, "Wrong size of __cpu_model will result in ABI break");
1165+
static_assert(sizeof(__cpu_model) == 16,
1166+
"Wrong size of __cpu_model will result in ABI break");
11701167

11711168
#ifndef _WIN32
11721169
__attribute__((visibility("hidden")))

0 commit comments

Comments
 (0)