• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

Revision346b24c0a520b8567c091ae49bd2130ad62922dd (tree)
Time2008-01-26 03:07:54
AuthorJanis Johnson <janis187@us.i...>
CommiterJanis Johnson

Log Message

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

Change Summary

Incremental Difference

--- a/libdecnumber/ChangeLog
+++ b/libdecnumber/ChangeLog
@@ -1,3 +1,20 @@
1+2008-01-25 Janis Johnson <janis187@us.ibm.com>
2+
3+ * Makefile.in (libdecnumber_a_SOURCES): List Symbols headers.
4+ * decCommonSymbols.h: New file.
5+ * decCommon.c: Include it.
6+ * decDPDSymbols.h: New file.
7+ * decDPD.h: Include it.
8+ * decNumberLocal.h: Include the two new files.
9+ * decContextSymbols.h (DECPOWERS, DECSTICKYTAB): New.
10+ * decNumberSymbols.h (LNnn, d2utable): New.
11+ * dpd/decimal32Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
12+ * dpd/decimal64Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
13+ * dpd/decimal128Symbols.h (COMBEXP, COMBMSD, DPD2BIN, BIN2DPD): New.
14+ * dpd/decimal32.c: Remove redefine of DPD2BIN, BIN2DPD.
15+ * dpd/decimal64.c: Ditto.
16+ * dpd/decimal128.c: Ditto.
17+
118 2007-11-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
219
320 * Makefile.in (decimal32.o): Prepend $(srcdir) to dependencies
--- a/libdecnumber/Makefile.in
+++ b/libdecnumber/Makefile.in
@@ -65,9 +65,10 @@ libdecnumber_a_OBJS = decNumber.o decContext.o \
6565
6666 libdecnumber_a_SOURCES = decContext.c decContext.h decDPD.h \
6767 decNumber.c decNumber.h decNumberLocal.h \
68- dpd/decimal128.c dpd/decimal128.h \
69- dpd/decimal32.c dpd/decimal32.h \
70- dpd/decimal64.c dpd/decimal64.h \
68+ decContextSymbols.h decDPDSymbols.h decNumberSymbols.h \
69+ dpd/decimal128.c dpd/decimal128.h dpd/decimal128Symbols.h \
70+ dpd/decimal32.c dpd/decimal32.h dpd/decimal32Symbols.h \
71+ dpd/decimal64.c dpd/decimal64.h dpd/decimal64Symbols.h \
7172 bid/decimal128.c bid/decimal128.h \
7273 bid/decimal32.c bid/decimal32.h \
7374 bid/decimal64.c bid/decimal64.h
--- a/libdecnumber/decCommon.c
+++ b/libdecnumber/decCommon.c
@@ -50,6 +50,8 @@
5050 /* OR) or the rounding mode read; all other fields are ignored and */
5151 /* untouched. */
5252
53+#include "decCommonSymbols.h"
54+
5355 /* names for simpler testing and default context */
5456 #if DECPMAX==7
5557 #define SINGLE 1
--- a/libdecnumber/decContextSymbols.h
+++ b/libdecnumber/decContextSymbols.h
@@ -17,6 +17,8 @@
1717 #define decContextTestSavedStatus __decContextTestSavedStatus
1818 #define decContextTestStatus __decContextTestStatus
1919 #define decContextZeroStatus __decContextZeroStatus
20+#define DECPOWERS __decPOWERS
21+#define DECSTICKYTAB __decSTICKYTAB
2022 #endif
2123
2224 #endif
--- a/libdecnumber/decDPD.h
+++ b/libdecnumber/decDPD.h
@@ -34,7 +34,9 @@
3434 /* ------------------------------------------------------------------------ */
3535 /* ------------------------------------------------------------------------ */
3636 /* For details, see: http://www2.hursley.ibm.com/decimal/DPDecimal.html */
37-/* */
37+
38+#include "decDPDSymbols.h"
39+
3840 /* This include file defines several DPD and BCD conversion tables: */
3941 /* */
4042 /* uint16_t BCD2DPD[2458]; -- BCD -> DPD (0x999 => 2457) */
--- a/libdecnumber/decNumberLocal.h
+++ b/libdecnumber/decNumberLocal.h
@@ -100,6 +100,7 @@
100100 extern const uByte DECSTICKYTAB[10]; /* re-round digits if sticky */
101101 extern const uInt DECPOWERS[10]; /* powers of ten table */
102102 /* The following are included from decDPD.h */
103+#include "decDPDSymbols.h"
103104 extern const uShort DPD2BIN[1024]; /* DPD -> 0-999 */
104105 extern const uShort BIN2DPD[1000]; /* 0-999 -> DPD */
105106 extern const uInt DPD2BINK[1024]; /* DPD -> 0-999000 */
@@ -325,6 +326,7 @@
325326 #define DFISSNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7e000000)
326327
327328 /* Shared lookup tables */
329+#include "decCommonSymbols.h"
328330 extern const uInt DECCOMBMSD[64]; /* Combination field -> MSD */
329331 extern const uInt DECCOMBFROM[48]; /* exp+msd -> Combination */
330332
--- a/libdecnumber/decNumberSymbols.h
+++ b/libdecnumber/decNumberSymbols.h
@@ -64,6 +64,8 @@
6464 #define decNumberVersion __decNumberVersion
6565 #define decNumberXor __decNumberXor
6666 #define decNumberZero __decNumberZero
67+#define LNnn __decLNnn
68+#define d2utable __decd2utable
6769 #endif
6870
6971 #endif
--- a/libdecnumber/dpd/decimal128.c
+++ b/libdecnumber/dpd/decimal128.c
@@ -49,10 +49,6 @@
4949 #include "decimal128.h" /* our primary include */
5050
5151 /* Utility routines and tables [in decimal64.c] */
52-/* DPD2BIN and the reverse are renamed to prevent link-time conflict */
53-/* if decQuad is also built in the same executable */
54-#define DPD2BIN DPD2BINx
55-#define BIN2DPD BIN2DPDx
5652 extern const uInt COMBEXP[32], COMBMSD[32];
5753 extern const uShort DPD2BIN[1024];
5854 extern const uShort BIN2DPD[1000]; /* [not used] */
--- a/libdecnumber/dpd/decimal128Symbols.h
+++ b/libdecnumber/dpd/decimal128Symbols.h
@@ -11,6 +11,16 @@
1111 #define decimal128ToEngString __decimal128ToEngString
1212 #define decimal128ToNumber __decimal128ToNumber
1313 #define decimal128ToString __decimal128ToString
14+#define COMBEXP __decnnCOMBEXP
15+#define COMBMSD __decnnCOMBMSD
16+
17+/* DPD2BIN and BIN2DPD are used in support for decimal32/decimal64/decimal128
18+ and also in support for decSingle/decDouble/decQuad. Rename them in case
19+ both types of support are used in the same executable. */
20+#undef DPD2BIN
21+#define DPD2BIN __decnnDPD2BIN
22+#undef BIN2DPD
23+#define BIN2DPD __decnnBIN2DPD
1424 #endif
1525
1626 #endif
--- a/libdecnumber/dpd/decimal32.c
+++ b/libdecnumber/dpd/decimal32.c
@@ -49,10 +49,6 @@
4949 #include "decimal32.h" /* our primary include */
5050
5151 /* Utility tables and routines [in decimal64.c] */
52-/* DPD2BIN and the reverse are renamed to prevent link-time conflict */
53-/* if decQuad is also built in the same executable */
54-#define DPD2BIN DPD2BINx
55-#define BIN2DPD BIN2DPDx
5652 extern const uInt COMBEXP[32], COMBMSD[32];
5753 extern const uShort DPD2BIN[1024];
5854 extern const uShort BIN2DPD[1000];
--- a/libdecnumber/dpd/decimal32Symbols.h
+++ b/libdecnumber/dpd/decimal32Symbols.h
@@ -11,6 +11,16 @@
1111 #define decimal32ToEngString __decimal32ToEngString
1212 #define decimal32ToNumber __decimal32ToNumber
1313 #define decimal32ToString __decimal32ToString
14+#define COMBEXP __decnnCOMBEXP
15+#define COMBMSD __decnnCOMBMSD
16+
17+/* DPD2BIN and BIN2DPD are used in support for decimal32/decimal64/decimal128
18+ and also in support for decSingle/decDouble/decQuad. Rename them in case
19+ both types of support are used in the same executable. */
20+#undef DPD2BIN
21+#define DPD2BIN __decnnDPD2BIN
22+#undef BIN2DPD
23+#define BIN2DPD __decnnBIN2DPD
1424 #endif
1525
1626 #endif
--- a/libdecnumber/dpd/decimal64.c
+++ b/libdecnumber/dpd/decimal64.c
@@ -49,10 +49,6 @@
4949 #include "decimal64.h" /* our primary include */
5050
5151 /* Utility routines and tables [in decimal64.c]; externs for C++ */
52-/* DPD2BIN and the reverse are renamed to prevent link-time conflict */
53-/* if decQuad is also built in the same executable */
54-#define DPD2BIN DPD2BINx
55-#define BIN2DPD BIN2DPDx
5652 extern const uInt COMBEXP[32], COMBMSD[32];
5753 extern const uShort DPD2BIN[1024];
5854 extern const uShort BIN2DPD[1000];
--- a/libdecnumber/dpd/decimal64Symbols.h
+++ b/libdecnumber/dpd/decimal64Symbols.h
@@ -11,6 +11,16 @@
1111 #define decimal64ToEngString __decimal64ToEngString
1212 #define decimal64ToNumber __decimal64ToNumber
1313 #define decimal64ToString __decimal64ToString
14+#define COMBEXP __decnnCOMBEXP
15+#define COMBMSD __decnnCOMBMSD
16+
17+/* DPD2BIN and BIN2DPD are used in support for decimal32/decimal64/decimal128
18+ and also in support for decSingle/decDouble/decQuad. Rename them in case
19+ both types of support are used in the same executable. */
20+#undef DPD2BIN
21+#define DPD2BIN __decnnDPD2BIN
22+#undef BIN2DPD
23+#define BIN2DPD __decnnBIN2DPD
1424 #endif
1525
1626 #endif