[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r10734 - in /libdfp/trunk: sysdeps/powerpc/dfpu/ tests/



Author: ryanarn
Date: Tue Jun 15 12:38:18 2010
New Revision: 10734

Log:
2010-06-15  Ryan S. Arnold  <rsa@xxxxxxxxxx>

	* tests/test-logd.c: Added more expressive output on failure.
	* sysdeps/powerpc/dfpu/isfinited128.c: Added #include <dfpmacro.h>.
	* sysdeps/powerpc/dfpu/isfinited32.c: Likewise.
	* sysdeps/powerpc/dfpu/isfinited64.c: Likewise.

Modified:
    libdfp/trunk/sysdeps/powerpc/dfpu/isfinited128.c
    libdfp/trunk/sysdeps/powerpc/dfpu/isfinited32.c
    libdfp/trunk/sysdeps/powerpc/dfpu/isfinited64.c
    libdfp/trunk/tests/test-logd.c

Modified: libdfp/trunk/sysdeps/powerpc/dfpu/isfinited128.c
==============================================================================
--- libdfp/trunk/sysdeps/powerpc/dfpu/isfinited128.c (original)
+++ libdfp/trunk/sysdeps/powerpc/dfpu/isfinited128.c Tue Jun 15 12:38:18 2010
@@ -25,6 +25,7 @@
 #define TEST_CLASS_MASK 0x38
 
 #include "is_template.h"
+#include <dfpmacro.h>
 
 /* We erroneously published a version of math.h which used 'finite' instead of
  * 'isfinite' and math.h contained a polymorphic 'isfinite()' function which

Modified: libdfp/trunk/sysdeps/powerpc/dfpu/isfinited32.c
==============================================================================
--- libdfp/trunk/sysdeps/powerpc/dfpu/isfinited32.c (original)
+++ libdfp/trunk/sysdeps/powerpc/dfpu/isfinited32.c Tue Jun 15 12:38:18 2010
@@ -25,6 +25,7 @@
 #define TEST_CLASS_MASK 0x38
 
 #include "is_template.h"
+#include <dfpmacro.h>
 
 /* We erroneously published a version of math.h which used 'finite' instead of
  * 'isfinite' and math.h contained a polymorphic 'isfinite()' function which

Modified: libdfp/trunk/sysdeps/powerpc/dfpu/isfinited64.c
==============================================================================
--- libdfp/trunk/sysdeps/powerpc/dfpu/isfinited64.c (original)
+++ libdfp/trunk/sysdeps/powerpc/dfpu/isfinited64.c Tue Jun 15 12:38:18 2010
@@ -25,6 +25,7 @@
 #define TEST_CLASS_MASK 0x38
 
 #include "is_template.h"
+#include <dfpmacro.h>
 
 /* We erroneously published a version of math.h which used 'finite' instead of
  * 'isfinite' and math.h contained a polymorphic 'isfinite()' function which

Modified: libdfp/trunk/tests/test-logd.c
==============================================================================
--- libdfp/trunk/tests/test-logd.c (original)
+++ libdfp/trunk/tests/test-logd.c Tue Jun 15 12:38:18 2010
@@ -69,6 +69,12 @@
       fprintf(stdout,"%DfDD = logd64(%DfDD) in: %s:%d\n", retval, d64ptr->x,__FILE__,__LINE__-1);
       if(d64ptr->vorq == 'v')
         _VC_P(__FILE__,d64ptr->line, d64ptr->e,retval,d64ptr->format);
+      if(d64ptr->e != retval)
+        {
+	  static char rbuf[CHAR_MAX];
+	  fprintf(stderr,"decoded64(retval) [%s] != decoded64(expected) [%s]\n", decoded64(retval, &rbuf[0]), decoded64(d64ptr->e, &rbuf[0]));
+	}
+
 //      else
  //       _QC_P(__FILE__,d64ptr->line, d64ptr->e,retval,d64ptr->format);
     }