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

cpu: mips32r2_common: set BITARITHM_HAS_CLZ

The MIPS ISA implements CLZ:

https://ti.tuwien.ac.at/cps/teaching/courses/cavo/files/MIPS32-IS.pdf

For `tests/periph_gpio` this shaves off 20 bytes on `6lowpan-clicker`.
This commit is contained in:
Benjamin Valentin 2020-10-01 00:13:13 +02:00
parent c788fe130f
commit 4095eac9f2

View File

@ -32,6 +32,14 @@
extern "C" {
#endif
/**
* @brief Select fastest bitarithm_lsb implementation
* @{
*/
#define BITARITHM_LSB_BUILTIN
#define BITARITHM_HAS_CLZ
/** @} */
/**
* @brief Print the last instruction's address
*