Redis has an implementation of incrementally rehashing hash table in "dict.c" file. Very simple to understand code.
https://github.com/antirez/redis/blob/unstable/src/dict.h
https://github.com/antirez/redis/blob/unstable/src/dict.c
As you can see no rocket science there.