Took a stab at porting OpenSimplex2F to C. Haven't done a lot of testing but it was pretty straightforward. I did notice an overflow of int64_t when computing the seed value (detected by -fsanitize=undefined), I cast them to uint64_t and that went away, and it still seemed to work. If this is acceptable, perhaps I'll try OpenSimplex2S tomorrow.
Signed-off-by: Stephen M. Cameron stephenmcameron@gmail.com
Took a stab at porting OpenSimplex2F to C. Haven't done a lot of testing but it was pretty straightforward. I did notice an overflow of int64_t when computing the seed value (detected by -fsanitize=undefined), I cast them to uint64_t and that went away, and it still seemed to work. If this is acceptable, perhaps I'll try OpenSimplex2S tomorrow.