mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-19 19:43:52 +01:00
An `1 << x` with `x >= 15` is undefined behavior on 8-bit / 16-bit machines (which typically have `sizeof(int) == 2`). Using `1UL << x` is safe for `x <= 31`, which is large enough to make use of the full 32 bits in `runqueue_bitcache`. In addition, a `static_assert()` is added to enforce that `SCHED_PRIO_LEVELS` is never set to anything larger than 32.