Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 330 Bytes

hashes.asc

File metadata and controls

15 lines (11 loc) · 330 Bytes

hashes

djb_cksum

unsigned int djb_cksum( const char* p, unsigned int len )

checksum algorithm by d.j.bernstein.
 Didn't do any benchmarks, but the computation
 might be quite performant.
 It is a bitshift and two additions per byte.