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
Loading
...@@ -57,6 +57,17 @@ extern "C" { ...@@ -57,6 +57,17 @@ extern "C" {
#endif #endif
/** @} */ /** @} */
/**
* @brief Select fastest bitarithm_lsb implementation
* @{
*/
#ifdef __ARM_FEATURE_CLZ
#define BITARITHM_LSB_BUILTIN
#else
#define BITARITHM_LSB_LOOKUP
#endif
/** @} */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #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