Skip to content

Instantly share code, notes, and snippets.

zeux / murmur.h
Last active Mar 20, 2021
MurMurHash finalizers as 32-bit integer/pointer hashers
View murmur.h
uint32_t murmur2(uint32_t h)
h ^= h >> 13;
h *= 0x5bd1e995;
h ^= h >> 15;
return h;
uint32_t murmur3(uint32_t h)
toomasv /
Last active Jun 19, 2021
Range function for multiple datatypes
Red [
Author: "Toomas Vooglaid"
Date: 26-11-2017
range: function [val1 val2 /step stp /limit /enbase ebase /debase dbase /unicode][
stp+?: none
stp: any [stp either any [percent? val1 percent? val2] [1%][1]]
if any [all [block? stp zero? stp/3] zero? stp] [return none]
case [
debase [