Just having fast and slow seems to be enough.
#endif
#define CPU_IS_LITTLE_ENDIAN (!CPU_IS_BIG_ENDIAN)
#endif
#define CPU_IS_LITTLE_ENDIAN (!CPU_IS_BIG_ENDIAN)
-#if defined(__x86_64__) || defined(__i386__)
-# define UNALIGNED_ACCESS_SPEED 3
-#elif defined(__ARM_FEATURE_UNALIGNED) && (__ARM_FEATURE_UNALIGNED == 1)
-# define UNALIGNED_ACCESS_SPEED 2
+/* UNALIGNED_ACCESS_IS_FAST should be defined to 1 if unaligned memory accesses
+ * can be performed efficiently on the target platform. */
+#if defined(__x86_64__) || defined(__i386__) || defined(__ARM_FEATURE_UNALIGNED)
+# define UNALIGNED_ACCESS_IS_FAST 1
-# define UNALIGNED_ACCESS_SPEED 0
+# define UNALIGNED_ACCESS_IS_FAST 0
#endif
/* Get the type of the specified expression. */
#endif
/* Get the type of the specified expression. */
* beyond the end of the output buffer, hence the check for (winend -
* end >= WORDSIZE - 1).
*/
* beyond the end of the output buffer, hence the check for (winend -
* end >= WORDSIZE - 1).
*/
- if (UNALIGNED_ACCESS_IS_VERY_FAST &&
+ if (UNALIGNED_ACCESS_IS_FAST &&
likely(winend - end >= WORDSIZE - 1))
{
likely(winend - end >= WORDSIZE - 1))
{