random_string(str + alignment, lengths[i]);
elapsed_time();
/* Avoid "optimizing" by gcc, since the functions are
- * attributed as ((const)). */
+ * attributed CONST. */
tot1 += strlen(str + alignment);
el1 += elapsed_time();
tot2 += str_len(str + alignment);
#define ROL(x, bits) (((x) << (bits)) | ((x) >> (sizeof(uns)*8 - (bits))))
/* The following functions need str to be aligned to uns. */
-uns str_len_aligned(const char *str) __attribute__((const));
-uns str_hash_aligned(const char *str) __attribute__((const));
+uns str_len_aligned(const char *str) CONST;
+uns str_hash_aligned(const char *str) CONST;
#ifdef CPU_ALLOW_UNALIGNED
#define str_len(str) str_len_aligned(str)
#define str_hash(str) str_hash_aligned(str)
#else
-uns str_len(const char *str) __attribute__((const));
-uns str_hash(const char *str) __attribute__((const));
+uns str_len(const char *str) CONST;
+uns str_hash(const char *str) CONST;
#endif