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:
parent
74bbb87f78
commit
464dc63f08
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user