google / highway

Performance-portable, length-agnostic SIMD with runtime dispatch
Apache License 2.0
4.12k stars 315 forks source link

Fix compilation errors if HWY_DISPATCH_MAP is 1 #2168

Closed johnplatts closed 4 months ago

johnplatts commented 4 months ago

Fixed compilation errors if HWY_DISPATCH_MAP is 1 by moving the declaration of hwy::AllExports to before the declaration of hwy::FunctionCache as hwy::FunctionCache<RetType, Args...>::ChooseAndCall<kHash>(Args...) requires that hwy::AllExports be declared if HWY_DISPATCH_MAP is 1.