diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2015-05-13 03:55:09 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2015-05-13 03:55:09 +0000 |
commit | a64bad83383c1502f193d0917431041fb28b1dff (patch) | |
tree | d7df52153cdc6626305edab56e401a10876085ff /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp | |
parent | d538fdc217fd575790670953c9e0247125bf6740 (diff) | |
download | llvm-a64bad83383c1502f193d0917431041fb28b1dff.zip llvm-a64bad83383c1502f193d0917431041fb28b1dff.tar.gz llvm-a64bad83383c1502f193d0917431041fb28b1dff.tar.bz2 |
Use a more accurate implementation for exp
Using exp2(x * M_LOG2E_F) does not give us accurate enough results for
OpenCL. If you look at the new exp implementation you'll see that
it does multiply the input by M_LOG2E_F, but it still uses the original
input in part of the calculation.
This exp implementation was ported from the AMD builtin library
and has been tested with piglit, OpenCV, and the ocl conformance tests.
llvm-svn: 237229
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions