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

[patches] LIBDFP branch: Support for BID format



I've checked in some changes to the LIBDFP branch to support the DFP BID
format and cleanly separate it from the DPD format files.  This required
prefixing the symbol names in the soft-dfp directory with either __bid_
or __dpd_ to match those found in GCC.  The configure fragment detects
which DFP format is supported by GCC and the makefile uses this to
select the proper dpd or bid decNumber include directory.  The Implies
chain must still point to a soft-dfp dpd or bid subdirectory supported
by that platform.

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



2008-09-19  Pete Eberlein  <eberlein@xxxxxxxxxx>

	* dfp/Makefile: Use bid or dpd decnumber includes.  Remove 
	dpd-private and decode-decimal from libdfp-shared.
	* dfp/sysdeps/powerpc/decode-decimal.c: Moved to soft-dfp/dpd.
	* dfp/sysdeps/powerpc/dpd-private.c: Ditto.
	* dfp/sysdeps/powerpc/dpd-private.h: Ditto.
	* dfp/sysdeps/powerpc/numdigits.h: Ditto.
	* dfp/sysdeps/powerpc/dfpu/fe_decround.c: Modified for 64-bit
	fpscr.
	* dfp/sysdeps/soft-dfp/convert.h 
	(PREFIXED_FUNCTION_NAME): New macro.
	(CONVERT_WRAPPER): New macro.
	(DFP_TEST_EXCEPTIONS): Conditionalized on fegetenv_register.
	(DFP_CLEAR_EXCEPTIONS): Ditto.
	* dfp/sysdeps/soft-dfp/eqdd2.c: Uses the prefixed function
	name.  Updated copyright year.
	* dfp/sysdeps/soft-dfp/floatunsditd.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixunstdsi.c: Ditto.
	* dfp/sysdeps/soft-dfp/subsd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/gesd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/subtd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/getd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/mulsd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendsddd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendsdtf.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendsftd.c: Ditto.
	* dfp/sysdeps/soft-dfp/multd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatdisd.c: Ditto.
	* dfp/sysdeps/soft-dfp/extenddfdd.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixtdsi.c: Ditto.
	* dfp/sysdeps/soft-dfp/truncddsd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/trunctdsf.c: Ditto.
	* dfp/sysdeps/soft-dfp/trunctfsd.c: Ditto.
	* dfp/sysdeps/soft-dfp/trunctddd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatunssisd.c: Ditto.
	* dfp/sysdeps/soft-dfp/eqsd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/eqtd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/adddd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendsdtd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendddtf.c: Ditto.
	* dfp/sysdeps/soft-dfp/extenddftd.c: Ditto.
	* dfp/sysdeps/soft-dfp/trunctdsd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatunsdisd.c: Ditto.
	* dfp/sysdeps/soft-dfp/addsd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/addtd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendsfsd.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendtftd.c: Ditto.
	* dfp/sysdeps/soft-dfp/ltdd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixunssddi.c: Ditto.
	* dfp/sysdeps/soft-dfp/unorddd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/ltsd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/lttd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixsddi.c: Ditto.
	* dfp/sysdeps/soft-dfp/ledd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/nedd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/unordsd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixunsdddi.c: Ditto.
	* dfp/sysdeps/soft-dfp/unordtd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatsidd.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendddtd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/lesd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/letd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixdddi.c: Ditto.
	* dfp/sysdeps/soft-dfp/nesd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/netd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/divdd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/truncdddf.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixunstddi.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatsitd.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatdidd.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixtddi.c: Ditto.
	* dfp/sysdeps/soft-dfp/divsd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/divtd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/trunctddf.c: Ditto.
	* dfp/sysdeps/soft-dfp/trunctfdd.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatunssidd.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixunssdsi.c: Ditto.
	* dfp/sysdeps/soft-dfp/gtdd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixsdsi.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatditd.c: Ditto.
	* dfp/sysdeps/soft-dfp/truncsdsf.c: Ditto.
	* dfp/sysdeps/soft-dfp/trunctdtf.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatunssitd.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatunsdidd.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixunsddsi.c: Ditto.
	* dfp/sysdeps/soft-dfp/gtsd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/gttd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/subdd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/gedd2.c: Ditto.
	* dfp/sysdeps/soft-dfp/floatsisd.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendsddf.c: Ditto.
	* dfp/sysdeps/soft-dfp/extendsfdd.c: Ditto.
	* dfp/sysdeps/soft-dfp/muldd3.c: Ditto.
	* dfp/sysdeps/soft-dfp/fixddsi.c: Ditto.
	* dfp/sysdeps/soft-dfp/truncddsf.c: Ditto.
	* dfp/sysdeps/soft-dfp/truncdfsd.c: Ditto.
	* dfp/sysdeps/soft-dfp/extend2.c: Deleted.
	* dfp/sysdeps/soft-dfp/extendtfdd.c: Deleted.
	* dfp/sysdeps/soft-dfp/convert.c: Deleted.
	* dfp/sysdeps/soft-dfp/Versions: Moved to bid/ and dpd/
	subdirectory.
	* dfp/sysdeps/soft-dfp/makecfiles.sh: Deleted.
	* dfp/sysdeps/soft-dfp/dpd/dpd-private.c: Moved from 
	sysdeps/powerpc.
	* dfp/sysdeps/soft-dfp/dpd/decode-decimal.c: Moved from
	sysdeps/powerpc.
	* dfp/sysdeps/soft-dfp/dpd/dpd-private.h: Moved from 
	sysdeps/powerpc.
	* dfp/sysdeps/soft-dfp/dpd/numdigits.h: Moved from 
	sysdeps/powerpc.
	* dfp/sysdeps/soft-dfp/dpd/Versions: Copied from .. and 
	prefixed symbols with __dpd_.
	* dfp/sysdeps/soft-dfp/dpd/Makefile: New file.
	* dfp/sysdeps/soft-dfp/bid/Versions: Copied from .. and 
	prefixed symbols with __bid_.
	* dfp/sysdeps/unix/sysv/linux/s390/Implies: Points to 
	soft-dfp/dpd.
	* dfp/sysdeps/dfp/configure.in: Get which dfp format gcc 
	supports into $(decimal-format).
	* dfp/sysdeps/ieee754r/dfpmacro.h (PREFIXED_FUNCTION_NAME): 
	New macro.
	* dfp/sysdeps/unix/sysv/linux/powerpc/Implies: Points to 
	soft-dfp/dpd.