Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ext/hash/murmur/PMurHash.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ on big endian machines, or a byte-by-byte read if the endianess is unknown.
#define UNALIGNED_SAFE
#endif

/* Avoid miscompiled aligned reads with the v142 ARM64 optimizer. */
#if defined(_MSC_VER) && _MSC_VER < 1930 && defined(_M_ARM64) && !defined(__clang__)
#define UNALIGNED_SAFE
#endif

/* Find best way to ROTL */
#if defined(_MSC_VER)
#define FORCE_INLINE static __forceinline
Expand Down
5 changes: 5 additions & 0 deletions win32/build/config.w32.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
#define DEFAULT_SHORT_OPEN_TAG "1"

/* Platform-Specific Configuration. Should not be changed. */
/* Match -ffp-contract=off on toolsets that enable ARM64 contractions by default. */
#if defined(_MSC_VER) && _MSC_VER < 1930 && defined(_M_ARM64) && !defined(__clang__)
# pragma fp_contract(off)
#endif

/* Alignment for Zend memory allocator */
#define ZEND_MM_ALIGNMENT (size_t)8
#define ZEND_MM_ALIGNMENT_LOG2 (size_t)3
Expand Down
Loading