Compare https://github.com/RIOT-OS/RIOT/blob/master/core/bitarithm.c#L4-L6