acl icon indicating copy to clipboard operation
acl copied to clipboard

Enable POPCNT instruction when targeting Win11

Open nfrechette opened this issue 1 year ago • 0 comments

Win11 requires POPCNT being present and drivers require it as well: https://www.techpowerup.com/forums/threads/remove-popcnt-cpu-instruction-requirement.325261/

We need to check the Windows SDK version used during compilation and enable it as required: https://blog.yuo.be/2025/02/12/what-do-all-the-recent-ntddi-version-values-mean/

We also need to disable the ACL_POPCOUNT macro when we don't care (e.g. gcc/clang) as it causes compilation to fail (e.g. android under windows).

nfrechette avatar Apr 17 '25 03:04 nfrechette