10 Oct
2023
10 Oct
'23
9:17 p.m.
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. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/364#note_48248