mirror of
https://github.com/php/php-src.git
synced 2024-11-23 01:44:06 +08:00
Fix GH-15292: Dynamic AVX detection is broken for MSVC
See https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170 For x64, either _M_X64 or _M_AMD64 would work but I'm going with what's already used in php-src. Closes GH-15301.
This commit is contained in:
parent
3a30c29d73
commit
00001c4a0c
1
NEWS
1
NEWS
@ -10,6 +10,7 @@ PHP NEWS
|
||||
type). (ilutov)
|
||||
. Fixed bug GH-15181 (Disabled output handler is flushed again). (cmb)
|
||||
. Passing E_USER_ERROR to trigger_error() is now deprecated. (Girgias)
|
||||
. Fixed bug GH-15292 (Dynamic AVX detection is broken for MSVC). (nielsdos)
|
||||
|
||||
- Date:
|
||||
. Constants SUNFUNCS_RET_TIMESTAMP, SUNFUNCS_RET_STRING, and SUNFUNCS_RET_DOUBLE
|
||||
|
@ -73,7 +73,7 @@ static void __zend_cpuid(uint32_t func, uint32_t subfunc, zend_cpu_info *cpuinfo
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(_M_X64) || defined(_M_IX86)
|
||||
/* Function based on compiler-rt implementation. */
|
||||
static unsigned get_xcr0_eax(void) {
|
||||
# if defined(__GNUC__) || defined(__clang__)
|
||||
|
Loading…
Reference in New Issue
Block a user