Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sizeof(double) == 8 && sizeof(float)==4 || pas IEEE
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 8 Jul 2004 01:18:00 +0000 (01:18 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 8 Jul 2004 01:18:00 +0000 (01:18 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@214 48e7efb5-ca39-0410-a469-dd3cf9ba447f

acmacro/gras_arch.m4

index cafccb9..8e76168 100644 (file)
@@ -103,6 +103,9 @@ union {
         unsigned char bytes[sizeof(float)];
 } floatTester;
 ],[
         unsigned char bytes[sizeof(float)];
 } floatTester;
 ],[
+if (sizeof(double) != 8 || sizeof(float) != 4)
+   return 1;
+
 memset(&doubleTester, 0, sizeof(doubleTester));
 memset(&floatTester, 0, sizeof(floatTester));
 
 memset(&doubleTester, 0, sizeof(doubleTester));
 memset(&floatTester, 0, sizeof(floatTester));