[php-src] PR #17477: Simplify ZEND_SIGNED_MULTIPLY_LONG() on Windows
| From: | cmb69 | Date: | Wed, 15 Jan 2025 13:52:55 +0000 |
| Subject: | [php-src] PR #17477: Simplify ZEND_SIGNED_MULTIPLY_LONG() on Windows | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30397@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17477
Author: cmb69
For Clang, we just need to define the respective macros, since these built-ins are available in all
supported Clang versions (>= 4.0.0, currently)[1].
For MSVC (and possibly other compilers) we use the respective APIs of intsafe.h[2] which are
available as of Windows 7/Server 2008 R2.
For x86 (and to a lesser extend for ARM64) that should also notably improve performance.
[1] <https://releases.llvm.org/4.0.0/tools/clang/docs/LanguageExtensions.html>
[2] <https://learn.microsoft.com/en-us/windows/win32/api/intsafe/>