math.bitwise: Add an in-order bitfield word called bitfield*.

master
Doug Coleman 2020-05-01 22:48:48 -05:00
parent d27c259928
commit c21608b0a0
1 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,9 @@ MACRO: bitfield ( bitspec -- quot )
[ (bitfield-quot) ] [ '[ @ _ dip bitor ] ] map-reduce
] if-empty ;
MACRO: bitfield* ( bitspec -- quot )
reverse bitfield ;
! bit-count
<PRIVATE