#include "value.h"

#include <stdlib.h>

int
valueCmpI64(void *privdata, const union value_t key1, const union value_t key2)
{
        return key1.i64 == key2.i64;
}

int
valueCmpF32(void *privdata, const union value_t key1, const union value_t key2)
{
        return key1.f32 == key2.f32;
}

uint64_t
valueHashFnI64(const union value_t key)
{
        return key.i64;
}

uint64_t
valueHashFnU64(const union value_t key)
{
        return key.u64;
}
