mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
14144030fa
The `clz` instruction pretty much implements getting the most significant bit in hardware, so use it instead of the software implementation. This reults in both a reduction in code size as in a speedup: master: text data bss dec hex filename 14816 136 2424 17376 43e0 tests/bitarithm_timings/bin/same54-xpro/tests_bitarithm_timings.elf + bitarithm_msb: 3529411 iterations per second this patch: text data bss dec hex filename 14768 136 2424 17328 43b0 tests/bitarithm_timings/bin/same54-xpro/tests_bitarithm_timings.elf + bitarithm_msb: 9230761 iterations per second |
||
---|---|---|
.. | ||
include | ||
assert.c | ||
atomic_c11.c | ||
atomic_sync.c | ||
bitarithm.c | ||
clist.c | ||
cond.c | ||
doc.txt | ||
init.c | ||
lifo.c | ||
Makefile | ||
mbox.c | ||
msg_bus.c | ||
msg.c | ||
mutex.c | ||
panic.c | ||
priority_queue.c | ||
ringbuffer.c | ||
rmutex.c | ||
sched.c | ||
thread_flags.c | ||
thread.c |