Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 629 Bytes

CheckBuiltin.md

File metadata and controls

23 lines (16 loc) · 629 Bytes

PHP/CheckBuiltin

Check whether compiler supports one of the built-in functions __builtin_*().

Module exposes the following function:

php_check_builtin(<builtin> <result_var>)

If builtin <builtin> is supported by the C compiler, store the check result in the cache variable <result_var>.

Basic usage

# CMakeLists.txt
include(PHP/CheckBuiltin)
php_check_builtin(__builtin_clz PHP_HAVE_BUILTIN_CLZ)