Added negative zero preprocessor constants
authorErik Lindahl <erik@kth.se>
Thu, 21 Aug 2014 06:35:41 +0000 (08:35 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 31 Aug 2014 16:45:49 +0000 (18:45 +0200)
commitc7600299d3e5f753d807252f8e8dbe7b5d7bce01
tree31478a45d450762701606e985049102ca001440b
parent839b4f6ce0f8544c90ca7cf74b35e0ab12fe9596
Added negative zero preprocessor constants

We had some discussions already when we started using negative
zero that it could be fragile on some compilers, and apparently
PGI is one of them. Maybe not the most important target, but it
makes sense to have a common constant in one place, and it can
also save some cycles in tight loops to clearly separate float
from double versions so we avoid extra precision conversions.

Change-Id: Id30a536b4f99f0310bfb2ec5185275c466cf5e07
src/gromacs/legacyheaders/types/simple.h
src/gromacs/simd/impl_intel_mic/impl_intel_mic.h
src/gromacs/simd/impl_x86_avx_128_fma/impl_x86_avx_128_fma.h
src/gromacs/simd/impl_x86_avx_256/impl_x86_avx_256.h
src/gromacs/simd/impl_x86_sse2/impl_x86_sse2.h
src/gromacs/simd/simd_math.h
src/testutils/tests/testasserts_tests.cpp