On E2K the function compiles only due to compiler emulation but the
function is never used. It's cleaner to omit the function when it's
not needed even though it's a "static inline" function.
Thanks to Ilya Kurdyukov.
(cherry picked from commit
30a2d5d51006301a3ddab5ef1f5ff0a9d74dce6f)
#endif // BUILDING_CRC64_CLMUL
+// Even though this is an inline function, compile it only when needed.
+// This way it won't appear in E2K builds at all.
+#if defined(CRC32_GENERIC) || defined(CRC64_GENERIC)
// Inlining this function duplicates the function body in crc32_resolve() and
// crc64_resolve(), but this is acceptable because this is a tiny function.
static inline bool
// code as is it only reads a variable set at startup but a few bytes
// doesn't matter here.
}
+#endif