Optimize sin/cos polynomial evaluation using FMA
Optimize sin/cos polynomial evaluation using FMA

This change conditionally uses Fused Multiply-Add operations to optimize
the approximate polynomial used to implement sin and cos operations. The
MulAdd() intrinsic evaluates to an FMA instruction when it is available
and deemed more efficient than individual multiplication and addition.

Bug: b/216472189
Bug: b/169754022
Change-Id: I423425250b1d5489514683d63f3d5261f5b59dbb
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/63548
Kokoro-Result: kokoro <2ac7b1f3fa578934c95181d4272be0d3bca00121@google.com>
Tested-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Reviewed-by: Sean Risser <2d04e98eeaa433fb55534399ab3ab2c06fdf7967@google.com>

google/swiftshader,google/swiftshader,google/swiftshader