I'm not even using these, but someone might be so I might as well make them faster.

This commit is contained in:
Steve Checkoway
2005-06-23 05:52:05 +00:00
parent 0d200bc461
commit 237054db79
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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__)
+3
View File
@@ -283,6 +283,9 @@ template<> inline word32 rotrMod<word32>(word32 x, unsigned int y)
#endif // #ifdef INTEL_INTRINSICS
#ifdef PPC_INTRINSICS
#if !defined(__MWERKS__)
# include <ppc_intrinsics.h>
#endif
template<> inline word32 rotlFixed<word32>(word32 x, unsigned int y)
{