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

[commits] r10733 - in /libdfp/trunk: ./ autom4te.cache/ dfp/ ieee754r/ sysdeps/powerpc/dfpu/



Author: ryanarn
Date: Tue Jun 15 09:42:04 2010
New Revision: 10733

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

	* configure: Regenerated.
	* ieee754r/Versions: Re-added __isfinited* for backward compatability.
	* configure.ac: Increment library version to 1.0.3.
	* README.user: Whitespace.
	* ieee754r/isfinited32.c: Use 'isfinite' instead of 'finite'.
	* sysdeps/powerpc/dfpu/isfinited128.c: Use 'isfinite' instead of
	* 'finite'.
	* sysdeps/powerpc/dfpu/isfinited32.c: Use 'isfinite' instead of
	* 'finite'.
	* sysdeps/powerpc/dfpu/isfinited64.c: Use 'isfinite' instead of
	* 'finite'.
	* dfp/math.h: Whitespace.

Modified:
    libdfp/trunk/README.user
    libdfp/trunk/autom4te.cache/output.0
    libdfp/trunk/autom4te.cache/traces.0
    libdfp/trunk/configure
    libdfp/trunk/configure.ac
    libdfp/trunk/dfp/math.h
    libdfp/trunk/ieee754r/Versions
    libdfp/trunk/ieee754r/isfinited32.c
    libdfp/trunk/sysdeps/powerpc/dfpu/isfinited128.c
    libdfp/trunk/sysdeps/powerpc/dfpu/isfinited32.c
    libdfp/trunk/sysdeps/powerpc/dfpu/isfinited64.c

Modified: libdfp/trunk/README.user
==============================================================================
--- libdfp/trunk/README.user (original)
+++ libdfp/trunk/README.user Tue Jun 15 09:42:04 2010
@@ -165,6 +165,7 @@
 	%H - for _Decimal32
 	%D - for _Decimal64
 	%DD - for _Decimal128
+
 ---------------------------------------------------------------------------
 4. Dependencies
 

Modified: libdfp/trunk/autom4te.cache/output.0
==============================================================================
--- libdfp/trunk/autom4te.cache/output.0 (original)
+++ libdfp/trunk/autom4te.cache/output.0 Tue Jun 15 09:42:04 2010
@@ -1,6 +1,6 @@
 @%:@! /bin/sh
 @%:@ Guess values for system-dependent variables and create Makefiles.
-@%:@ Generated by GNU Autoconf 2.59 for libdfp 1.0.2.
+@%:@ Generated by GNU Autoconf 2.59 for libdfp 1.0.3.
 @%:@
 @%:@ Report bugs to <rsa@xxxxxxxxxx>.
 @%:@ 
@@ -269,8 +269,8 @@
 # Identity of this package.
 PACKAGE_NAME='libdfp'
 PACKAGE_TARNAME='libdfp'
-PACKAGE_VERSION='1.0.2'
-PACKAGE_STRING='libdfp 1.0.2'
+PACKAGE_VERSION='1.0.3'
+PACKAGE_STRING='libdfp 1.0.3'
 PACKAGE_BUGREPORT='rsa@xxxxxxxxxx'
 
 ac_unique_file="printf_dfp.c"
@@ -741,7 +741,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures libdfp 1.0.2 to adapt to many kinds of systems.
+\`configure' configures libdfp 1.0.3 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -802,7 +802,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of libdfp 1.0.2:";;
+     short | recursive ) echo "Configuration of libdfp 1.0.3:";;
    esac
   cat <<\_ACEOF
 
@@ -947,7 +947,7 @@
 test -n "$ac_init_help" && exit 0
 if $ac_init_version; then
   cat <<\_ACEOF
-libdfp configure 1.0.2
+libdfp configure 1.0.3
 generated by GNU Autoconf 2.59
 
 Copyright (C) 2003 Free Software Foundation, Inc.
@@ -961,7 +961,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by libdfp $as_me 1.0.2, which was
+It was created by libdfp $as_me 1.0.3, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   $ $0 $@
@@ -3448,7 +3448,7 @@
 } >&5
 cat >&5 <<_CSEOF
 
-This file was extended by libdfp $as_me 1.0.2, which was
+This file was extended by libdfp $as_me 1.0.3, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -3508,7 +3508,7 @@
 
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-libdfp config.status 1.0.2
+libdfp config.status 1.0.3
 configured by $0, generated by GNU Autoconf 2.59,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 

Modified: libdfp/trunk/autom4te.cache/traces.0
==============================================================================
--- libdfp/trunk/autom4te.cache/traces.0 (original)
+++ libdfp/trunk/autom4te.cache/traces.0 Tue Jun 15 09:42:04 2010
@@ -1,4 +1,4 @@
-m4trace:configure.ac:8: -1- AC_INIT([libdfp], [1.0.2], [rsa@xxxxxxxxxx])
+m4trace:configure.ac:8: -1- AC_INIT([libdfp], [1.0.3], [rsa@xxxxxxxxxx])
 m4trace:configure.ac:8: -1- m4_pattern_forbid([^_?A[CHUM]_])
 m4trace:configure.ac:8: -1- m4_pattern_forbid([_AC_])
 m4trace:configure.ac:8: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])

Modified: libdfp/trunk/configure
==============================================================================
--- libdfp/trunk/configure (original)
+++ libdfp/trunk/configure Tue Jun 15 09:42:04 2010
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for libdfp 1.0.2.
+# Generated by GNU Autoconf 2.59 for libdfp 1.0.3.
 #
 # Report bugs to <rsa@xxxxxxxxxx>.
 #
@@ -269,8 +269,8 @@
 # Identity of this package.
 PACKAGE_NAME='libdfp'
 PACKAGE_TARNAME='libdfp'
-PACKAGE_VERSION='1.0.2'
-PACKAGE_STRING='libdfp 1.0.2'
+PACKAGE_VERSION='1.0.3'
+PACKAGE_STRING='libdfp 1.0.3'
 PACKAGE_BUGREPORT='rsa@xxxxxxxxxx'
 
 ac_unique_file="printf_dfp.c"
@@ -741,7 +741,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures libdfp 1.0.2 to adapt to many kinds of systems.
+\`configure' configures libdfp 1.0.3 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -802,7 +802,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of libdfp 1.0.2:";;
+     short | recursive ) echo "Configuration of libdfp 1.0.3:";;
    esac
   cat <<\_ACEOF
 
@@ -947,7 +947,7 @@
 test -n "$ac_init_help" && exit 0
 if $ac_init_version; then
   cat <<\_ACEOF
-libdfp configure 1.0.2
+libdfp configure 1.0.3
 generated by GNU Autoconf 2.59
 
 Copyright (C) 2003 Free Software Foundation, Inc.
@@ -961,7 +961,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by libdfp $as_me 1.0.2, which was
+It was created by libdfp $as_me 1.0.3, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   $ $0 $@
@@ -3448,7 +3448,7 @@
 } >&5
 cat >&5 <<_CSEOF
 
-This file was extended by libdfp $as_me 1.0.2, which was
+This file was extended by libdfp $as_me 1.0.3, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -3508,7 +3508,7 @@
 
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-libdfp config.status 1.0.2
+libdfp config.status 1.0.3
 configured by $0, generated by GNU Autoconf 2.59,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 

Modified: libdfp/trunk/configure.ac
==============================================================================
--- libdfp/trunk/configure.ac (original)
+++ libdfp/trunk/configure.ac Tue Jun 15 09:42:04 2010
@@ -5,7 +5,7 @@
 # has a hard-coded 2.59 requirement and Libdfp doesn't really care, but can't
 # control libdecnumber.
 AC_PREREQ(2.59)
-AC_INIT(libdfp, 1.0.2, rsa@xxxxxxxxxx)
+AC_INIT(libdfp, 1.0.3, rsa@xxxxxxxxxx)
 AC_CONFIG_SRCDIR([printf_dfp.c])
 
 # We don't use Automake so this is necessary.

Modified: libdfp/trunk/dfp/math.h
==============================================================================
--- libdfp/trunk/dfp/math.h (original)
+++ libdfp/trunk/dfp/math.h Tue Jun 15 09:42:04 2010
@@ -176,6 +176,11 @@
 extern int isfinited32 (_Decimal32 __value) __THROW __attribute__ ((__const__));
 extern int __isfinited32 (_Decimal32 __value) __THROW __attribute__ ((__const__));
 
+/* Deprecated but older uses of math.h may have invocations of these if they
+ * used the polymorphic finite().  */
+extern int finited32 (_Decimal32 __value) __THROW __attribute__ ((__const__));
+extern int __finited32 (_Decimal32 __value) __THROW __attribute__ ((__const__));
+
 extern _Decimal32 dremd32 (_Decimal32 __x, _Decimal32 __y) __THROW;
 extern _Decimal32 __dremd32 (_Decimal32 __x, _Decimal32 __y) __THROW;
 
@@ -401,6 +406,11 @@
 extern int isfinited64 (_Decimal64 __value) __THROW __attribute__ ((__const__));
 extern int __isfinited64 (_Decimal64 __value) __THROW __attribute__ ((__const__));
 
+/* Deprecated but older uses of math.h may have invocations of these if they
+ * used the polymorphic finite().  */
+extern int finited64 (_Decimal64 __value) __THROW __attribute__ ((__const__));
+extern int __finited64 (_Decimal64 __value) __THROW __attribute__ ((__const__));
+
 extern _Decimal64 dremd64 (_Decimal64 __x, _Decimal64 __y) __THROW;
 extern _Decimal64 __dremd64 (_Decimal64 __x, _Decimal64 __y) __THROW;
 
@@ -626,6 +636,11 @@
 extern int isfinited128 (_Decimal128 __value) __THROW __attribute__ ((__const__));
 extern int __isfinited128 (_Decimal128 __value) __THROW __attribute__ ((__const__));
 
+/* Deprecated but older uses of math.h may have invocations of these if they
+ * used the polymorphic finite().  */
+extern int finited128 (_Decimal128 __value) __THROW __attribute__ ((__const__));
+extern int __finited128 (_Decimal128 __value) __THROW __attribute__ ((__const__));
+
 extern _Decimal128 dremd128 (_Decimal128 __x, _Decimal128 __y) __THROW;
 extern _Decimal128 __dremd128 (_Decimal128 __x, _Decimal128 __y) __THROW;
 
@@ -750,24 +765,39 @@
 extern _Bool __samequantumd128 (_Decimal128 __x, _Decimal128 __y) __THROW;
 
 extern int isgreaterd32(_Decimal32 x, _Decimal32 y) __THROW;
+
 extern int isgreaterequald32(_Decimal32 x, _Decimal32 y) __THROW;
+
 extern int islessd32(_Decimal32 x, _Decimal32 y) __THROW;
+
 extern int islessequald32(_Decimal32 x, _Decimal32 y) __THROW;
+
 extern int islessgreaterd32(_Decimal32 x, _Decimal32 y) __THROW;
+
 extern int isunorderedd32 (_Decimal32 x, _Decimal32 y) __THROW;
 
 extern int isgreaterd64(_Decimal64 x, _Decimal64 y) __THROW;
+
 extern int isgreaterequald64(_Decimal64 x, _Decimal64 y) __THROW;
+
 extern int islessd64(_Decimal64 x, _Decimal64 y) __THROW;
+
 extern int islessequald64(_Decimal64 x, _Decimal64 y) __THROW;
+
 extern int islessgreaterd64(_Decimal64 x, _Decimal64 y) __THROW;
+
 extern int isunorderedd64 (_Decimal64 x, _Decimal64 y) __THROW;
 
 extern int isgreaterd128(_Decimal128 x, _Decimal128 y) __THROW;
+
 extern int isgreaterequald128(_Decimal128 x, _Decimal128 y) __THROW;
+
 extern int islessd128(_Decimal128 x, _Decimal128 y) __THROW;
+
 extern int islessequald128(_Decimal128 x, _Decimal128 y) __THROW;
+
 extern int islessgreaterd128(_Decimal128 x, _Decimal128 y) __THROW;
+
 extern int isunorderedd128 (_Decimal128 x, _Decimal128 y) __THROW;
 
 /* Classification functions.  We undefine those defined by the system math.h
@@ -931,6 +961,36 @@
     )									      \
   )
 
+/* Comparison Macros  */
+#ifdef isunordered
+# undef isunordered
+#endif
+
+/* Return nonzero value if X is a NaN.  We could use `fpclassify' but
+   we already have this functions `__isnan' and it is faster.  */
+# ifdef __NO_LONG_DOUBLE_MATH
+#  define ____isnan(x) \
+     (sizeof (x) == sizeof (float) ? __isnanf (x) : __isnan (x))
+# else
+#  define ____isnan(x) \
+     (sizeof (x) == sizeof (float)		      \
+      ? __isnanf (x)				      \
+      : sizeof (x) == sizeof (double)		      \
+      ? __isnan (x) : __isnanl (x))
+# endif
+
+
+#define isnan(x) \
+  (!__dfp_compatible(x)						      \
+    ? (____isnan(x))							      \
+    : (sizeof (x) == sizeof (_Decimal128)				      \
+      ? __isnand128(x)							      \
+      : (sizeof (x) == sizeof (_Decimal64)				      \
+	? __isnand64(x)							      \
+	: __isnand32(x)))						      \
+  )
+
+
 __END_DECLS
 
 #endif /* __STDC_WANT_DEC_FP__  */

Modified: libdfp/trunk/ieee754r/Versions
==============================================================================
--- libdfp/trunk/ieee754r/Versions (original)
+++ libdfp/trunk/ieee754r/Versions Tue Jun 15 09:42:04 2010
@@ -66,6 +66,15 @@
     __isfinited32;
     __isfinited64;
     __isfinited128;
+    # finited* and friends is deprecated but we published math.h with
+    # polymorphic isfinite() pointing to them so keep them around.  They just
+    # aliases.
+    finited32;
+    finited64;
+    finited128;
+    __finited32;
+    __finited64;
+    __finited128;
     floord32;
     floord64;
     floord128;

Modified: libdfp/trunk/ieee754r/isfinited32.c
==============================================================================
--- libdfp/trunk/ieee754r/isfinited32.c (original)
+++ libdfp/trunk/ieee754r/isfinited32.c Tue Jun 15 09:42:04 2010
@@ -1,11 +1,12 @@
 /* Returns non-zero if the _Decimal32 is non-infinite
 
    Copyright (C) 2006 IBM Corporation.
-   Copyright (C) 2007, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
 
    This file is part of the Decimal Floating Point C Library.
 
    Author(s): Joseph Kerian <jkerian@xxxxxxxxxx>
+              Ryan S. Arnold <rsa@xxxxxxxxxx>
 
    The Decimal Floating Point C Library is free software; you can
    redistribute it and/or modify it under the terms of the GNU Lesser
@@ -50,3 +51,9 @@
 }
 
 weak_alias (INTERNAL_FUNCTION_NAME, EXTERNAL_FUNCTION_NAME)
+
+/* We erroneously published a version of math.h which used 'finite' instead of
+ * 'isfinite' and math.h contained a polymorphic 'isfinite()' function which
+ * inlined calles to 'finited*' so we've created aliases for compatability.  */
+strong_alias (INTERNAL_FUNCTION_NAME,FUNC_D(finite))
+strong_alias (INTERNAL_FUNCTION_NAME,FUNC_D(__finite))

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 09:42:04 2010
@@ -1,7 +1,8 @@
 /* Returns non-zero if the _Decimal128 is finite
-   Copyright (C) 2008 IBM Corporation.
+   Copyright (C) 2008, 2010 IBM Corporation.
 
    Author(s): Pete Eberlein <eberlein@xxxxxxxxxx>
+              Ryan S. Arnold <rsa@xxxxxxxxxx>
 
    The Decimal Floating Point C Library is free software; you can
    redistribute it and/or modify it under the terms of the GNU Lesser
@@ -24,3 +25,9 @@
 #define TEST_CLASS_MASK 0x38
 
 #include "is_template.h"
+
+/* We erroneously published a version of math.h which used 'finite' instead of
+ * 'isfinite' and math.h contained a polymorphic 'isfinite()' function which
+ * inlined calles to 'finited*' so we've created aliases for compatability.  */
+strong_alias (INTERNAL_FUNCTION_NAME,FUNC_D(finite))
+strong_alias (INTERNAL_FUNCTION_NAME,FUNC_D(__finite))

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 09:42:04 2010
@@ -1,7 +1,8 @@
 /* Returns non-zero if the _Decimal32 is finite
-   Copyright (C) 2008 IBM Corporation.
+   Copyright (C) 2008, 2010 IBM Corporation.
 
    Author(s): Pete Eberlein <eberlein@xxxxxxxxxx>
+              Ryan S. Arnold <rsa@xxxxxxxxxx>
 
    The Decimal Floating Point C Library is free software; you can
    redistribute it and/or modify it under the terms of the GNU Lesser
@@ -24,3 +25,9 @@
 #define TEST_CLASS_MASK 0x38
 
 #include "is_template.h"
+
+/* We erroneously published a version of math.h which used 'finite' instead of
+ * 'isfinite' and math.h contained a polymorphic 'isfinite()' function which
+ * inlined calles to 'finited*' so we've created aliases for compatability.  */
+strong_alias (INTERNAL_FUNCTION_NAME,FUNC_D(finite))
+strong_alias (INTERNAL_FUNCTION_NAME,FUNC_D(__finite))

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 09:42:04 2010
@@ -1,7 +1,8 @@
 /* Returns non-zero if the _Decimal64 is finite
-   Copyright (C) 2008 IBM Corporation.
+   Copyright (C) 2008, 2010 IBM Corporation.
 
    Author(s): Pete Eberlein <eberlein@xxxxxxxxxx>
+              Ryan S. Arnold <rsa@xxxxxxxxxx>
 
    The Decimal Floating Point C Library is free software; you can
    redistribute it and/or modify it under the terms of the GNU Lesser
@@ -24,3 +25,9 @@
 #define TEST_CLASS_MASK 0x38
 
 #include "is_template.h"
+
+/* We erroneously published a version of math.h which used 'finite' instead of
+ * 'isfinite' and math.h contained a polymorphic 'isfinite()' function which
+ * inlined calles to 'finited*' so we've created aliases for compatability.  */
+strong_alias (INTERNAL_FUNCTION_NAME,FUNC_D(finite))
+strong_alias (INTERNAL_FUNCTION_NAME,FUNC_D(__finite))