Browse Source

fix: ebx -> ecx (#46)

kris/switch_to_rust
Henry Case 4 years ago
committed by GitHub
parent
commit
adfaf1e58c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      utils/cpuid_amd64.go

+ 4
- 4
utils/cpuid_amd64.go View File

@@ -26,8 +26,8 @@ func init() {
_, ecx, _, _ := cpuid(1, 0)
X86.HasAES = bitn(ecx, 25)

_, ebx, _, _ := cpuid(7, 0)
X86.HasBMI2 = bitn(ebx, 8)
X86.HasADX = bitn(ebx, 19)
X86.HasRDSEED = bitn(ebx, 18)
_, ecx, _, _ = cpuid(7, 0)
X86.HasBMI2 = bitn(ecx, 8)
X86.HasADX = bitn(ecx, 19)
X86.HasRDSEED = bitn(ecx, 18)
}

Loading…
Cancel
Save