Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.y:
return write_acos_or_asin(ctx, params, loc, true);
}
+/*
- Between -1 and 1, approximates atan with a polynomial of degree 9.
- Outside of that range the polynomial goes off to infinity, so instead
- calculate the approximation on 1/x and shift it around +- pi/2.
+*/
Similarly to the first commit, I don't think the comment here is particularly useful, given that our task is just to reproduce the native behavior.