Skip to content
Snippets Groups Projects
Commit d9e79378 authored by Lyndon Brown's avatar Lyndon Brown
Browse files

cpu: micro-optimise feature dumping

the feature-specific macros each make a call to `vlc_CPU()` which involves
making an atomic read of a global variable, then ANDing the return with a
specific feature flag and comparing with zero. rather than do that over and
over pointlessly, just get the flag set once with a direct call to
`vlc_CPU()` and then directly compare with the individual feature flags.

since we've removed the build-time conditional definition of the feature
test macros which defined them as just returning `1` if matching a build
target, this produces no difference in results, whereas if we had not
removed that, the results would not have corresponded with build-time
force-enabled features.
parent 435a8a48
Branches cpu
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment