Handbook
Glossary
hash32 ( bytes -- hash )
Vocabulary
checksums
.
cityhash
.
private
Inputs
bytes
an
object
Outputs
hash
an
object
Definition
USING:
combinators
kernel
math
sequences
;
IN:
checksums.cityhash.private
:
hash32
( bytes -- hash )
dup
length
{
{
[
dup
4
<=
]
[
drop
0
hash32-0to4
]
}
{
[
dup
12
<=
]
[
drop
0
hash32-5to12
]
}
{
[
dup
24
<=
]
[
drop
hash32-13to24
]
}
[
drop
hash32-long
]
}
cond
;