added gmx_is_{single,double}_precision
authorChristoph Junghans <junghans@votca.org>
Tue, 18 Feb 2014 17:32:47 +0000 (10:32 -0700)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 20 Feb 2014 17:58:50 +0000 (18:58 +0100)
commit4f2c4f2391a01c3b35e5606d2ec2c33ba916d597
treee8410e52a8a74386b3ff6816ee67849ab1a25a29
parent01b9e92ab1b99e1dffb49d5c1cece9fbed5cd798
added gmx_is_{single,double}_precision

* allows easy detection of the precision for cmake, autotools
  without parsing the output of gmx_print_version_info (no
  cross-compile support) or the output of strings command (unix
  only)
* linking against libgmx with/out -DGMX_DOUBLE will lead to
  unpredictable segfaults

Change-Id: I472f10ae374a1f42c94c55e156b53f8905bdf098
src/gmxlib/copyrite.c