Primitive math optimizations
v1.18.1