summaryrefslogtreecommitdiff
path: root/cmake/utils/CPUUtils.cmake
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Add CPU feature detection helperDimitri Staessens12 days1-0/+54
Add cmake/utils/CPUUtils.cmake providing detect_cpu_feature() plus detect_pclmul() and detect_pmull() that compile-test for x86 PCLMULQDQ+SSE4.1 and aarch64 FEAT_PMULL respectively. This will be useful for hardware accelerated CRC64/NVMe integrity checks. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>