[php-src] PR #18770: use XSSE for bcmath
| From: | SakiTakamachi | Date: | Thu, 05 Jun 2025 04:15:19 +0000 |
| Subject: | [php-src] PR #18770: use XSSE for bcmath | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31971@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18770
Author: SakiTakamachi
Although there is no actual issue, the current code may trigger undefined behavior (UB) due to
signed integer underflow or overflow on NEON environments. These are essentially just noise.
Since modifying the code to suppress this noise ends up making it identical to XSSE, I’ve decided
to incorporate XSSE internally within BCMath.
XSSE already has unit tests implemented using cmocka, and since the APIs being used are of the same
kind as before and haven't changed, I’ve determined that using XSSE is safe.
The function names for SIMD will now revert to being compatible with the SSE API, as they were
previously.