diff options
author | Janis Johnson <janis187@us.ibm.com> | 2008-01-25 18:07:54 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2008-01-25 18:07:54 +0000 |
commit | 346b24c0a520b8567c091ae49bd2130ad62922dd (patch) | |
tree | 38f5a729ed4beb6eef8c90f4d5056395ed9c0dd2 /libdecnumber/dpd | |
parent | fb7c3b0519b6496d9ed2b712e919d0ccbf8cceb5 (diff) | |
download | gcc-346b24c0a520b8567c091ae49bd2130ad62922dd.zip gcc-346b24c0a520b8567c091ae49bd2130ad62922dd.tar.gz gcc-346b24c0a520b8567c091ae49bd2130ad62922dd.tar.bz2 |
Makefile.in (libdecnumber_a_SOURCES): List Symbols headers.
* Makefile.in (libdecnumber_a_SOURCES): List Symbols headers.
* decCommonSymbols.h: New file.
* decCommon.c: Include it.
* decDPDSymbols.h: New file.
* decDPD.h: Include it.
* decNumberLocal.h: Include the two new files.
* decContextSymbols.h (DECPOWERS, DECSTICKYTAB): New.
* decNumberSymbols.h (LNnn, d2utable): New.
* dpd/decimal32Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
* dpd/decimal64Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
* dpd/decimal128Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
* dpd/decimal32.c: Remove redefine of DPD2BIN, BIN2DPD.
* dpd/decimal64.c: Ditto.
* dpd/decimal128.c: Ditto.
From-SVN: r131830
Diffstat (limited to 'libdecnumber/dpd')
-rw-r--r-- | libdecnumber/dpd/decimal128.c | 4 | ||||
-rw-r--r-- | libdecnumber/dpd/decimal128Symbols.h | 10 | ||||
-rw-r--r-- | libdecnumber/dpd/decimal32.c | 4 | ||||
-rw-r--r-- | libdecnumber/dpd/decimal32Symbols.h | 10 | ||||
-rw-r--r-- | libdecnumber/dpd/decimal64.c | 4 | ||||
-rw-r--r-- | libdecnumber/dpd/decimal64Symbols.h | 10 |
6 files changed, 30 insertions, 12 deletions
diff --git a/libdecnumber/dpd/decimal128.c b/libdecnumber/dpd/decimal128.c index 6aa98b5..0e32ceb 100644 --- a/libdecnumber/dpd/decimal128.c +++ b/libdecnumber/dpd/decimal128.c @@ -49,10 +49,6 @@ #include "decimal128.h" /* our primary include */ /* Utility routines and tables [in decimal64.c] */ -/* DPD2BIN and the reverse are renamed to prevent link-time conflict */ -/* if decQuad is also built in the same executable */ -#define DPD2BIN DPD2BINx -#define BIN2DPD BIN2DPDx extern const uInt COMBEXP[32], COMBMSD[32]; extern const uShort DPD2BIN[1024]; extern const uShort BIN2DPD[1000]; /* [not used] */ diff --git a/libdecnumber/dpd/decimal128Symbols.h b/libdecnumber/dpd/decimal128Symbols.h index da9d76b..b30687c 100644 --- a/libdecnumber/dpd/decimal128Symbols.h +++ b/libdecnumber/dpd/decimal128Symbols.h @@ -11,6 +11,16 @@ #define decimal128ToEngString __decimal128ToEngString #define decimal128ToNumber __decimal128ToNumber #define decimal128ToString __decimal128ToString +#define COMBEXP __decnnCOMBEXP +#define COMBMSD __decnnCOMBMSD + +/* DPD2BIN and BIN2DPD are used in support for decimal32/decimal64/decimal128 + and also in support for decSingle/decDouble/decQuad. Rename them in case + both types of support are used in the same executable. */ +#undef DPD2BIN +#define DPD2BIN __decnnDPD2BIN +#undef BIN2DPD +#define BIN2DPD __decnnBIN2DPD #endif #endif diff --git a/libdecnumber/dpd/decimal32.c b/libdecnumber/dpd/decimal32.c index 692c2f7..42bddf1 100644 --- a/libdecnumber/dpd/decimal32.c +++ b/libdecnumber/dpd/decimal32.c @@ -49,10 +49,6 @@ #include "decimal32.h" /* our primary include */ /* Utility tables and routines [in decimal64.c] */ -/* DPD2BIN and the reverse are renamed to prevent link-time conflict */ -/* if decQuad is also built in the same executable */ -#define DPD2BIN DPD2BINx -#define BIN2DPD BIN2DPDx extern const uInt COMBEXP[32], COMBMSD[32]; extern const uShort DPD2BIN[1024]; extern const uShort BIN2DPD[1000]; diff --git a/libdecnumber/dpd/decimal32Symbols.h b/libdecnumber/dpd/decimal32Symbols.h index de11934..c4aa74f 100644 --- a/libdecnumber/dpd/decimal32Symbols.h +++ b/libdecnumber/dpd/decimal32Symbols.h @@ -11,6 +11,16 @@ #define decimal32ToEngString __decimal32ToEngString #define decimal32ToNumber __decimal32ToNumber #define decimal32ToString __decimal32ToString +#define COMBEXP __decnnCOMBEXP +#define COMBMSD __decnnCOMBMSD + +/* DPD2BIN and BIN2DPD are used in support for decimal32/decimal64/decimal128 + and also in support for decSingle/decDouble/decQuad. Rename them in case + both types of support are used in the same executable. */ +#undef DPD2BIN +#define DPD2BIN __decnnDPD2BIN +#undef BIN2DPD +#define BIN2DPD __decnnBIN2DPD #endif #endif diff --git a/libdecnumber/dpd/decimal64.c b/libdecnumber/dpd/decimal64.c index 359214e..c3617c4 100644 --- a/libdecnumber/dpd/decimal64.c +++ b/libdecnumber/dpd/decimal64.c @@ -49,10 +49,6 @@ #include "decimal64.h" /* our primary include */ /* Utility routines and tables [in decimal64.c]; externs for C++ */ -/* DPD2BIN and the reverse are renamed to prevent link-time conflict */ -/* if decQuad is also built in the same executable */ -#define DPD2BIN DPD2BINx -#define BIN2DPD BIN2DPDx extern const uInt COMBEXP[32], COMBMSD[32]; extern const uShort DPD2BIN[1024]; extern const uShort BIN2DPD[1000]; diff --git a/libdecnumber/dpd/decimal64Symbols.h b/libdecnumber/dpd/decimal64Symbols.h index cf965bf..efb6446 100644 --- a/libdecnumber/dpd/decimal64Symbols.h +++ b/libdecnumber/dpd/decimal64Symbols.h @@ -11,6 +11,16 @@ #define decimal64ToEngString __decimal64ToEngString #define decimal64ToNumber __decimal64ToNumber #define decimal64ToString __decimal64ToString +#define COMBEXP __decnnCOMBEXP +#define COMBMSD __decnnCOMBMSD + +/* DPD2BIN and BIN2DPD are used in support for decimal32/decimal64/decimal128 + and also in support for decSingle/decDouble/decQuad. Rename them in case + both types of support are used in the same executable. */ +#undef DPD2BIN +#define DPD2BIN __decnnDPD2BIN +#undef BIN2DPD +#define BIN2DPD __decnnBIN2DPD #endif #endif |