summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/frexp.inc
Commit message (Collapse)AuthorAgeFilesLines
* frexp: Reuse types provided by gentype.incJan Vesely2018-03-061-77/+41
| | | | | | | | | | | v2: Use select instead of bitselect to consolidate scalar and vector versions Passes CTS on Carrizo Reviewed-by: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 326820
* math: Add frexp ported from amd-builtinsAaron Watry2016-02-081-0/+110
The float implementation is almost a direct port from the amd-builtins, but instead of just having a scalar and float4 implementation, it has a scalar and arbitrary width vector implementation. The double scalar is also a direct port from AMD's builtin release. The double vector implementation copies the logic in the float vector implementation using the values from the double scalar version. Both have been tested in piglit using tests sent to that project's mailing list. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 260114
OpenPOWER on IntegriCloud