diff --git a/cpu/arm7_common/include/arm_cpu.h b/cpu/arm7_common/include/arm_cpu.h index e5810d96f3..5e64e2fc12 100644 --- a/cpu/arm7_common/include/arm_cpu.h +++ b/cpu/arm7_common/include/arm_cpu.h @@ -34,6 +34,17 @@ void arm_reset(void); */ #define STACK_CANARY_WORD (0xEAFFFFFEu) +/** + * @brief Select fastest bitarithm_lsb implementation + * @{ + */ +#ifdef __ARM_FEATURE_CLZ +#define BITARITHM_LSB_BUILTIN +#define BITARITHM_HAS_CLZ +#else +#define BITARITHM_LSB_LOOKUP +#endif +/** @} */ #ifdef __cplusplus }