[PATCH 1/1] tan: Port from amd_builtins

Passes piglit on turks and carrizo.
Passes CTS on carrizo
Fixes half_tan to pass CTS on carrizo

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>