Build fix, runtime_crc32c() should be in namespace detail
This commit is contained in:
parent
6a47be250f
commit
e200288d06
1 changed files with 12 additions and 10 deletions
|
@ -76,17 +76,19 @@ namespace wren {
|
||||||
#endif
|
#endif
|
||||||
} //unnamed namespace
|
} //unnamed namespace
|
||||||
|
|
||||||
[[gnu::const]]
|
namespace detail {
|
||||||
std::uint32_t runtime_crc32c (const char* data, std::size_t size, std::uint32_t crc) {
|
[[gnu::const]]
|
||||||
|
std::uint32_t runtime_crc32c (const char* data, std::size_t size, std::uint32_t crc) {
|
||||||
#if defined(WRENPP_WITH_SSE42)
|
#if defined(WRENPP_WITH_SSE42)
|
||||||
//if (_may_i_use_cpu_feature(_FEATURE_SSE4_2)) {
|
//if (_may_i_use_cpu_feature(_FEATURE_SSE4_2)) {
|
||||||
if (__builtin_cpu_supports("sse4.2")) {
|
if (__builtin_cpu_supports("sse4.2")) {
|
||||||
return crc32c_hw(data, size, crc);
|
return crc32c_hw(data, size, crc);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
return detail::crc32<detail::g_castagnoli_polynomial>(data, size, crc);
|
return detail::crc32<detail::g_castagnoli_polynomial>(data, size, crc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
} //namespace detail
|
||||||
} //namespace wren
|
} //namespace wren
|
||||||
|
|
Loading…
Reference in a new issue