Guard definition pg_pmull_available() on compile-time availability
of PMULL. Oversight in
fbc57f2bc. In passing, remove "inline" hint
for consistency.
Reported-by: Tomas Vondra <tomas@vondra.me>
Discussion: https://postgr.es/m/
f153d5a4-a9be-4211-b0b2-
7e99b56d68d5@vondra.me
#endif
}
-static inline bool
+#ifdef USE_PMULL_CRC32C_WITH_RUNTIME_CHECK
+static bool
pg_pmull_available(void)
{
#if defined(__aarch64__) && defined(HWCAP_PMULL)
return false;
#endif
}
+#endif /* USE_PMULL_CRC32C_WITH_RUNTIME_CHECK */
/*
* This gets called on the first call. It replaces the function pointer