Skip to content

Commit

Permalink
Fixed FMA4 check
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Mar 2, 2020
1 parent 065b99b commit 8cb40fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Extensions/DirectXMathFMA4.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ inline bool XMVerifyFMA4Support()
return false;

// We check for FMA4
#ifdef __clang__
__cpuid(0x80000001, CPUInfo[0], CPUInfo[1], CPUInfo[2], CPUInfo[3]);
#else
__cpuid(CPUInfo, 0x80000001);
#endif

return ( CPUInfo[2] & 0x10000 );
}

Expand Down

0 comments on commit 8cb40fc

Please sign in to comment.