[php-src] PR #19203: Make specialization of x64 zend_safe_address() for nmemb==1
| From: | nielsdos | Date: | Mon, 21 Jul 2025 14:58:02 +0000 |
| Subject: | [php-src] PR #19203: Make specialization of x64 zend_safe_address() for nmemb==1 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32551@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19203
Author: nielsdos
There are typically 3 forms of calls to this function:
1. nmemb>1, offset=0||size=0
2. nmemb=1, size>0, offset>0
3. nmemb>1, size>0, offset>0
This specializes the second form: it avoids the multiplication.
For clang, which has trouble with the
rm constraint, it also avoids some spills in some
cases.