Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 928caec

Browse files
committed
core.cpuid: Fix deprecated syntax for GDC-style inline asm
1 parent 77df0e9 commit 928caec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/cpuid.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ void cpuidX86()
954954

955955
if (cf.probablyAMD && max_extended_cpuid >= 0x8000_001E) {
956956
version (GNU_OR_LDC) asm pure nothrow @nogc {
957-
"cpuid" : "=a" a, "=b" b : "a" 0x8000_001E : "ecx", "edx";
957+
"cpuid" : "=a" (a), "=b" (b) : "a" (0x8000_001E) : "ecx", "edx";
958958
} else {
959959
asm pure nothrow @nogc {
960960
mov EAX, 0x8000_001e;
@@ -992,7 +992,7 @@ bool hasCPUID()
992992
xor {(%%esp), %%eax|eax, [esp]}
993993
# eax = whichever bits were changed
994994
popf{l|d} # Restore original EFLAGS
995-
" : "=a" flags;
995+
" : "=a" (flags);
996996
}
997997
}
998998
else version (D_InlineAsm_X86)

0 commit comments

Comments
 (0)