Adjust test range and fix singleaccuracy tests
authorErik Lindahl <erik@kth.se>
Thu, 12 Sep 2019 11:20:52 +0000 (13:20 +0200)
committerErik Lindahl <erik.lindahl@gmail.com>
Thu, 12 Sep 2019 13:50:12 +0000 (15:50 +0200)
commitedf39abd620c59d0e2940d481f529e8296140c6d
tree3861abb696ad823b97278e7a181175494cdadc78
parent6c15da4c3a736d58f623266acc21dbf7b89ec35f
Adjust test range and fix singleaccuracy tests

This changes the limit of exp() tests by one ulp
to account for rounding that leads to tests failing
for a single value when the CPU uses different
denormals-to-zero modes for SIMD and non-SIMD (ARMv7).

It also fixes the singleaccuracy tests to
check the correct functions for log2/exp2/pow2/cbrt
instead of the double-precision flavors, and the
implementation of powSingleAccuracy has been
copied from the (faster) single precision type
instead of just calling the double precision version.

Change-Id: I67d027cb916c4f78f36719f9ff554e9957879763
src/gromacs/simd/simd_math.h
src/gromacs/simd/tests/simd_math.cpp