Skip to content
Commit 8872800e authored by Aaron Watry's avatar Aaron Watry
Browse files

math: Add frexp ported from amd-builtins



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: default avatarAaron Watry <awatry@gmail.com>
Reviewed-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 260114
parent ff9d83ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment