Merge branch 'release-4-5-patches'
[gromacs/adressmacs.git] / cmake / TestFloatFormat.c
blob7467f805a6b5cc4ebc47bfb5d39e19059e1d913a
1 int
2 main()
4 /* Check that a double is 8 bytes - compilation dies if it isnt */
5 extern char xyz [sizeof(double) == 8 ? 1 : -1];
7 double abc [] = {
8 /* Zero-terminated strings encoded as floating-point numbers */
9 /* "GROMACSX" in ascii */
10 (double) 3.80279098314984902657e+35 , (double) 0.0,
11 /* "GROMACSX" in ebcdic */
12 (double) -1.37384666579378297437e+38 , (double) 0.0,
13 /* "D__float" (vax) */
14 (double) 3.53802595280598432000e+18 , (double) 0.0,
15 /* "IBMHEXFP" s390/ascii */
16 (double) 1.77977764695171661377e+10 , (double) 0.0,
17 /* "IBMHEXFP" s390/ebcdic */
18 (double) -5.22995989424860458374e+10 , (double) 0.0,
21 return 0;