Skip to content

Commit

Permalink
Set OPTIMAL_CMP for 32-bit PowerPC
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 authored and Dead2 committed Dec 22, 2024
1 parent 90913e8 commit 005c2d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/detect-arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#endif

// PowerPC
#elif defined(__powerpc__) || defined(_ppc__) || defined(__PPC__)
#elif defined(__powerpc__) || defined(__ppc__) || defined(__PPC__)
#if defined(__64BIT__) || defined(__powerpc64__) || defined(__ppc64__)
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#error archfound powerpc64le
Expand Down
2 changes: 2 additions & 0 deletions zbuild.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@
# endif
#elif defined(__powerpc64__) || defined(__ppc64__)
# define OPTIMAL_CMP 64
#elif defined(__powerpc__) || defined(__ppc__) || defined(__PPC__)
# define OPTIMAL_CMP 32
#endif
#if defined(NO_UNALIGNED)
# undef OPTIMAL_CMP
Expand Down

0 comments on commit 005c2d3

Please sign in to comment.