There was an error while loading. Please reload this page.
1 parent d376986 commit 12e6a53Copy full SHA for 12e6a53
1 file changed
Modules/_sha3/sha3module.c
@@ -98,9 +98,11 @@
98
#ifdef __sparc
99
/* On SPARC with Solaris CC opt64 fails with 'invalid address alignment' */
100
#define KeccakOpt 32
101
-#elif SIZEOF_VOID_P == 8
+#elif SIZEOF_VOID_P == 8 && defined(PY_UINT64_T)
102
+ /* opt64 works only for 64bit platforms with unsigned int64 */
103
#define KeccakOpt 64
-#elif SIZEOF_VOID_P == 4
104
+#else
105
+ /* opt32 is used for the remaining 32 and 64bit platforms */
106
107
#endif
108
@@ -109,7 +111,7 @@
109
111
#define Unrolling 24
110
112
#define UseBebigokimisa
113
typedef PY_UINT64_T UINT64;
-#elif KeccakOpt == 32 && defined(PY_UINT64_T)
114
+#elif KeccakOpt == 32 && defined(PY_UINT64_T)
115
/* 32bit platforms with unsigned int64 */
116
#define Unrolling 2
117
#define UseSchedule 3
0 commit comments