Skip to content

Commit

Permalink
Fix compilation on x86+AVX2
Browse files Browse the repository at this point in the history
Fixes compilation error:

hwy/ops/x86_512-inl.h: In function 'hwy::N_AVX3::MFromD<D> hwy::N_AVX3::FirstN(D, size_t)':
hwy/ops/x86_512-inl.h:755:25: error: 'T' was not declared in this scope
  755 |   return detail::FirstN<T>(n);
      |                         ^
  • Loading branch information
malaterre committed Sep 27, 2023
1 parent c9295a6 commit 7ef7aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hwy/ops/x86_512-inl.h
Expand Up @@ -752,7 +752,7 @@ HWY_API MFromD<D> FirstN(D d, size_t n) {
m.raw = static_cast<decltype(m.raw)>(_bzhi_u64(all, n));
return m;
#else
return detail::FirstN<T>(n);
return detail::FirstN<TFromD<D>>(n);
#endif // HWY_ARCH_X86_64
}

Expand Down

0 comments on commit 7ef7aa6

Please sign in to comment.