vtn: Clean up acos implementation.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 29 Jan 2016 02:59:00 +0000 (18:59 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 8 Feb 2016 23:23:43 +0000 (15:23 -0800)
commitcec6fe2ad85717a438c80aaf4f1d3da35e4e5fd1
treefedc721ce08a2d5b070a17df7d19eb9bc9673b8f
parentf50a6517267230befe7ca5a5fbf064a5d1153f8e
vtn: Clean up acos implementation.

Parameterize build_asin() on the fit coefficients so the
implementation can be shared while still using different polynomials
for asin and acos.  Also switch back to implementing acos in terms of
asin -- The improvement obtained from cancelling out the pi/2 terms
was negligible compared to the approximation error.
src/compiler/nir/spirv/vtn_glsl450.c