I've wrote an implementation of Murmur3 hash and have defined the 128-bit keys as hash128_t
typedef struct
{
uint64_t p1;
uint64_t p2;
} hash128_t;
I'm trying to write my own hashmap using these keys, but I'm not exactly sure how to do arithmetic with a struct nor a number this large. I need help specifically with modulo operations, but help on how to treat these two blocks of memory as one integer would be greatly appreciated.
My modulo formula is
Dividend - ((Dividend/Divisor) * Divisor)