donut https://turbowarp.org/959586394
The donut math by a1k0n, and a post about donut.c here https://www.a1k0n.net/2011/07/20/donut-math.html donut