From 237054db79a1976039945a5036e0047e00814689 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 23 Jun 2005 05:52:05 +0000 Subject: [PATCH] I'm not even using these, but someone might be so I might as well make them faster. --- stepmania/src/crypto51/config.h | 2 +- stepmania/src/crypto51/misc.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/crypto51/config.h b/stepmania/src/crypto51/config.h index 4e84cecb7c..594dcae533 100644 --- a/stepmania/src/crypto51/config.h +++ b/stepmania/src/crypto51/config.h @@ -170,7 +170,7 @@ union dword_union #if defined(_MSC_VER) || defined(__BCPLUSPLUS__) # define INTEL_INTRINSICS # define FAST_ROTATE -#elif defined(__MWERKS__) && TARGET_CPU_PPC +#elif defined(__ppc__) || defined(__ppc64__) || defined(__MWERKS__) && TARGET_CPU_PPC # define PPC_INTRINSICS # define FAST_ROTATE #elif defined(__GNUC__) && defined(__i386__) diff --git a/stepmania/src/crypto51/misc.h b/stepmania/src/crypto51/misc.h index 4bb68cebb4..f212ba13fa 100644 --- a/stepmania/src/crypto51/misc.h +++ b/stepmania/src/crypto51/misc.h @@ -283,6 +283,9 @@ template<> inline word32 rotrMod(word32 x, unsigned int y) #endif // #ifdef INTEL_INTRINSICS #ifdef PPC_INTRINSICS +#if !defined(__MWERKS__) +# include +#endif template<> inline word32 rotlFixed(word32 x, unsigned int y) {