Skip to content

Enable -mbmi2 #103

@tzaeschke

Description

@tzaeschke

Add the -mbmi2 for compiling with clang/gcc with cmake/bazel.
BMI2 enables use of CLZ (count leading zeos) which is used by the array_map.
Also: check for corresponding option in MSVC.

Alternatively:
build:linux --copt="-march=haswell" / skylake
build:linux --copt="-march=native"

https://learn.microsoft.com/en-us/cpp/intrinsics/bitscanreverse-bitscanreverse64?view=msvc-170

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions