This is a C port of Hessu's rip44d