mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
micro optimization
This commit is contained in:
parent
63f5e11d9b
commit
858d545ce6
3 changed files with 8 additions and 5 deletions
|
@ -48,6 +48,11 @@ ZEND_API zend_string *zend_empty_string = NULL;
|
|||
ZEND_API zend_string *zend_one_char_string[256];
|
||||
ZEND_API zend_string **zend_known_strings = NULL;
|
||||
|
||||
ZEND_API zend_ulong ZEND_FASTCALL zend_string_hash_func(zend_string *str)
|
||||
{
|
||||
return ZSTR_H(str) = zend_hash_func(ZSTR_VAL(str), ZSTR_LEN(str));
|
||||
}
|
||||
|
||||
ZEND_API zend_ulong ZEND_FASTCALL zend_hash_func(const char *str, size_t len)
|
||||
{
|
||||
return zend_inline_hash_func(str, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue