Fix that exp(load(x)) is ambiguous
authorRoland Schulz <roland.schulz@intel.com>
Wed, 27 Sep 2017 22:15:46 +0000 (15:15 -0700)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 5 Oct 2017 07:18:19 +0000 (09:18 +0200)
commit81b411f09bf45801579c141586d06343af85638a
treef3551cece10561ccbfe4824ae98862df4f421bba
parent9fbffbbfacbff555c92a2b6aca4fba5ef07b3feb
Fix that exp(load(x)) is ambiguous

Because of the template argument added by e34ead15, exp(float) was
preferred over exp(SimdFloat). This causes code which is ambiguous
to compile and creates unintuitive behavior.

Also:
- Add compile tests that these functions don't compile when they
  are used ambiguously.
- Add sqrt to scalar_math which was missing

Change-Id: Ic7582764f1fa9b644d4608536100004e5f737462
docs/doxygen/suppressions.txt
src/gromacs/simd/scalar/scalar_math.h
src/gromacs/simd/tests/CMakeLists.txt
src/gromacs/simd/tests/simd_ambiguous.cpp [new file with mode: 0644]