diff --git a/src/internal/cpu/cpu.go b/src/internal/cpu/cpu.go index 3090adbbe4..d84a92ce56 100644 --- a/src/internal/cpu/cpu.go +++ b/src/internal/cpu/cpu.go @@ -20,6 +20,7 @@ type x86 struct { HasBMI1 bool HasBMI2 bool HasERMS bool + HasFMA bool HasOSXSAVE bool HasPCLMULQDQ bool HasPOPCNT bool diff --git a/src/internal/cpu/cpu_x86.go b/src/internal/cpu/cpu_x86.go index 5bbe999675..6a7b5c2271 100644 --- a/src/internal/cpu/cpu_x86.go +++ b/src/internal/cpu/cpu_x86.go @@ -27,6 +27,7 @@ func init() { X86.HasSSE3 = isSet(0, ecx1) X86.HasPCLMULQDQ = isSet(1, ecx1) X86.HasSSSE3 = isSet(9, ecx1) + X86.HasFMA = isSet(12, ecx1) X86.HasSSE41 = isSet(19, ecx1) X86.HasSSE42 = isSet(20, ecx1) X86.HasPOPCNT = isSet(23, ecx1)