Fix clang tidy warnings in SIMD code
commit5837f1c909bce7d3d0cbd2da6ca184a075440da6
authorErik Lindahl <erik@kth.se>
Fri, 13 Sep 2019 18:25:16 +0000 (13 20:25 +0200)
committerErik Lindahl <erik@kth.se>
Fri, 13 Sep 2019 18:25:16 +0000 (13 20:25 +0200)
treed21c820321ccfd0702441510e25eb45361a9a08c
parent173d7a63dda0213d9f4402d9d42e8fd34cf2f676
Fix clang tidy warnings in SIMD code

Replace integer division and asserting it is
evenly divisible with using the divided constant
and multiplication to avoid warnings about
fragile integer division.
Second, we no longer need to use relaxed-range
checking for exp() with our new polynomial fix
that does not depend on FMA hardware.

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