9 lines
330 B
Factor
9 lines
330 B
Factor
! Copyright (C) 2008 Slava Pestov.
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
USING: layouts kernel parser math ;
|
|
IN: persistent.hashtables.config
|
|
|
|
: radix-bits ( -- n ) << cell 4 = 4 5 ? parsed >> ; foldable
|
|
: radix-mask ( -- n ) radix-bits 2^ 1- ; foldable
|
|
: full-bitmap-mask ( -- n ) radix-bits 2^ 2^ 1- ; inline
|