Module: Jch

Included in:
Gelatin::Ring
Defined in:
ext/jch/jch.c

Instance Method Summary collapse

Instance Method Details

#hash(v_key, v_num_buckets) ⇒ Object



17
18
19
20
21
22
23
# File 'ext/jch/jch.c', line 17

static
VALUE
JumpConsistentHash(VALUE t, VALUE v_key, VALUE v_num_buckets)
{
  return INT2NUM(JumpConsistentHashImpl(NUM2ULL(v_key),
                  NUM2UINT(v_num_buckets)));
}