]> granicus.if.org Git - php/commit
Avoid direct calls to zend_cpu_supports()
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 27 Nov 2020 10:18:10 +0000 (11:18 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 27 Nov 2020 10:18:10 +0000 (11:18 +0100)
commit2772f7c3ad1537e2dc265a94faf09ecdacead9f2
tree29e6017e8c867a0924ef27ca013761acb9bfe4dd
parentf35b1940299f51a1418714c37f56669d364b0f13
Avoid direct calls to zend_cpu_supports()

While the use of zend_cpu_supports_*() is only strictly necessary
inside ifunc resolvers, where the cpu state has not been initialized
yet, we should prefer the compiler builtins in all cases.
ext/opcache/jit/zend_jit_x86.dasc
ext/standard/crc32_x86.c
ext/standard/string.c