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

[patches] LIBDFP branch changes



I've checked in some changes to the LIBDFP branch. The major change in this commit is completely rewriting printf_dfp to properly display decimal types for the %f, %e, and %g conversions, based on draft TR24732. When a precision is not specified, the number of significant digits inherent in the decimal type is used. The Makefile also uses a new sysd-rules-patterns variable introduced by Roland recently, though the base libc makefile support isn't checked in -- this will appear after merging EGLIBC trunk soon. Other minor changes are detailed below.

* libc/configure.in: Changed --enable-decimal-float option to use
AC_ARG_ENABLE instead of AC_ARG_WITH.
* libc/stdio-common/vfprintf.c: Fixed tabs on line continuations
* libc/dfp/Makeconfig: New file. Uses new sysd-rules-patterns
variable.
* libc/dfp/sysdeps/powerpc/numdigits.h: New file.
* libc/dfp/sysdeps/powerpc/dpd-private.h: Removed tables.
* libc/dfp/sysdeps/powerpc/dpd-private.c: Moved tables from
dpd-private.h to here.
* libc/dfp/sysdeps/soft-dfp/extend_d_f.c: Deleted useless file.
* libc/dfp/sysdeps/soft-dfp/trunc.c: Deleted useless file.
* libc/dfp/sysdeps/soft-dfp/float.c: Deleted useless file.
* libc/dfp/sysdeps/soft-dfp/floatuns.c: Deleted useless file.
* libc/dfp/sysdeps/soft-dfp/fixuns.c: Deleted useless file.
* libc/dfp/sysdeps/soft-dfp/trunc2.c: Deleted useless file.
* libc/dfp/sysdeps/soft-dfp/convert.c: Removed unused variables.
* libc/dfp/sysdeps/soft-dfp/fix.c: Deleted useless file.
* libc/dfp/sysdeps/soft-dfp/extend.c: Deleted useless file.
* libc/dfp/sysdeps/dfp/stdlib/strtod32.c: Made changes to handle
zero with non-zero exponents.
* libc/dfp/sysdeps/dfp/Versions: Added printf_dfphex.
* libc/dfp/sysdeps/dfp/printf_dfp.c: Rewritten to support draft
TR24732 and no longer relies on decNumber.
* libc/dfp/sysdeps/ieee754r/d32/frexpd32.c: Uses numdigits.h
instead of decNumber.
* libc/dfp/libdecnumber/decContextSymbols.h: Updated from GCC.
* libc/dfp/libdecnumber/decNumberSymbols.h: Updated from GCC.
* libc/dfp/libdecnumber/dpd/decimal32Symbols.h: Updated from GCC.
* libc/dfp/libdecnumber/dpd/decimal64Symbols.h: Updated from GCC.
* libc/dfp/libdecnumber/dpd/decimal128Symbols.h: Updated from GCC.
* libc/dfp/Makefile: Removed decNumber from libc link.

--
Pete Eberlein
IBM Linux Technology Center
Linux for Power Toolchain