diff: use HAS_MULTI_BITS instead of counting bits manually