And fix some incorrect indentation.
}
ZEND_API int zend_cpu_supports(zend_cpu_feature feature) {
+ ZEND_ASSERT(cpuinfo.initialized);
if (feature & ZEND_CPU_EDX_MASK) {
return (cpuinfo.edx & (feature & ~ZEND_CPU_EDX_MASK));
} else if (feature & ZEND_CPU_EBX_MASK) {
ZEND_NO_SANITIZE_ADDRESS
static zend_always_inline int zend_cpu_supports_pclmul() {
#if PHP_HAVE_BUILTIN_CPU_INIT
- __builtin_cpu_init();
+ __builtin_cpu_init();
#endif
- return __builtin_cpu_supports("pclmul");
+ return __builtin_cpu_supports("pclmul");
}
#endif
}
static zend_always_inline int zend_cpu_supports_pclmul() {
- return zend_cpu_supports(ZEND_CPU_FEATURE_PCLMULQDQ);
+ return zend_cpu_supports(ZEND_CPU_FEATURE_PCLMULQDQ);
}
static zend_always_inline int zend_cpu_supports_avx() {