Skip to content

Commit ca0728b

Browse files
authored
fix indentation
1 parent 90e3f50 commit ca0728b

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

clang/lib/Headers/cpuid.h

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,18 @@
268268
#else
269269
/* x86-64 uses %rbx as the base register, so preserve it. */
270270
#define __cpuid(__leaf, __eax, __ebx, __ecx, __edx) \
271-
__asm(" xchg{q|} {%%|}rbx,%q1\n" \
272-
" cpuid\n" \
273-
" xchg{q|} {%%|}rbx,%q1" \
274-
: "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
271+
#define __cpuid(__leaf, __eax, __ebx, __ecx, __edx) \
272+
__asm(" xchg{q|} {%%|}rbx,%q1\n" \
273+
" cpuid\n" \
274+
" xchg{q|} {%%|}rbx,%q1" \
275+
: "=a"(__eax), "=r"(__ebx), "=c"(__ecx), "=d"(__edx) \
275276
: "0"(__leaf))
276277

277-
#define __cpuid_count(__leaf, __count, __eax, __ebx, __ecx, __edx) \
278-
__asm(" xchg{q|} {%%|}rbx,%q1\n" \
279-
" cpuid\n" \
280-
" xchg{q|} {%%|}rbx,%q1" \
281-
: "=a"(__eax), "=r" (__ebx), "=c"(__ecx), "=d"(__edx) \
278+
#define __cpuid_count(__leaf, __count, __eax, __ebx, __ecx, __edx) \
279+
__asm(" xchg{q|} {%%|}rbx,%q1\n" \
280+
" cpuid\n" \
281+
" xchg{q|} {%%|}rbx,%q1" \
282+
: "=a"(__eax), "=r"(__ebx), "=c"(__ecx), "=d"(__edx) \
282283
: "0"(__leaf), "2"(__count))
283284
#endif
284285

@@ -302,7 +303,9 @@ static __inline unsigned int __get_cpuid_max (unsigned int __leaf,
302303
" je 1f\n"
303304
" mov{l|} {$1,%0|%0,1}\n"
304305
"1:"
305-
: "=r" (__cpuid_supported) : : "eax", "ecx");
306+
: "=r"(__cpuid_supported)
307+
:
308+
: "eax", "ecx");
306309
if (!__cpuid_supported)
307310
return 0;
308311
#endif

0 commit comments

Comments
 (0)