-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fn dav1d_get_cpu_flags
: Add compile-time CPU feature detection (#504)
This adds `fn CpuFlags::compile_time_detect` for compile-time CPU feature detection for dead code elimination. `dav1d_get_cpu_flags` does this in `src/cpu.h`, too, but we only transpiled the `SSE2` case, which is the only one enabled by default for the default target. This was done in C for dead code elimination, so it should be useful for us, too, even though it seems to override the purpose of `fn dav1d_set_cpu_flags_mask` (a `DAV1D_API`).
- Loading branch information
Showing
1 changed file
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters