Skip to content
Snippets Groups Projects
Commit 99d484f3 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

cpu/cortexm_common: select bitarithm_lsb() by available instructions

parent 499c1812
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,17 @@ extern "C" {
#endif
/** @} */
/**
* @brief Select fastest bitarithm_lsb implementation
* @{
*/
#ifdef __ARM_FEATURE_CLZ
#define BITARITHM_LSB_BUILTIN
#else
#define BITARITHM_LSB_LOOKUP
#endif
/** @} */
#ifdef __cplusplus
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment