Skip to content

Commit

Permalink
Improved setting of OPTIMAL_CMP on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 authored and Dead2 committed Dec 23, 2024
1 parent 06bba67 commit fc90e7b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions zbuild.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,21 @@
defined(__i686__) || defined(_X86_) || defined(_M_IX86)
# define OPTIMAL_CMP 32
#elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
# if (defined(__GNUC__) && defined(__ARM_FEATURE_UNALIGNED)) || !defined(__GNUC__)
# if defined(__ARM_FEATURE_UNALIGNED) || defined(_WIN32)
# define OPTIMAL_CMP 64
# else
# define OPTIMAL_CMP 8
# endif
#elif defined(__arm__) || (_M_ARM >= 7)
# if (defined(__GNUC__) && defined(__ARM_FEATURE_UNALIGNED)) || !defined(__GNUC__)
#elif defined(__arm__) || defined(_M_ARM)
# if defined(__ARM_FEATURE_UNALIGNED) || defined(_WIN32)
# define OPTIMAL_CMP 32
# else
# define OPTIMAL_CMP 8
# endif
#elif defined(__powerpc64__) || defined(__ppc64__)
# define OPTIMAL_CMP 64
# define OPTIMAL_CMP 64
#elif defined(__powerpc__) || defined(__ppc__) || defined(__PPC__)
# define OPTIMAL_CMP 32
# define OPTIMAL_CMP 32
#endif
#if defined(NO_UNALIGNED)
# undef OPTIMAL_CMP
Expand Down

0 comments on commit fc90e7b

Please sign in to comment.