Passed tests of bitscan-reverse

This commit is contained in:
Koichi Nakamura 2021-05-05 23:19:02 +09:00
parent 4f0380dafa
commit 1473176c3e

View file

@ -60,6 +60,7 @@ create msb-table
\ If u == 0, returns -1
: bitscan-reverse ( u -- u )
dup 0xff u< if cells msb-table + @ exit then
8 rshift recurse 8 +
; export
}private