1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/arm7_common: add __ARM_FEATURE_CLZ feature test

The feature test macro should work on all ARM CPUs supported by gcc.
This commit is contained in:
Benjamin Valentin 2020-07-19 22:44:06 +02:00
parent 74bbb87f78
commit 464dc63f08

View File

@ -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
}