GCC with patches for OS216
Revision | 346b24c0a520b8567c091ae49bd2130ad62922dd (tree) |
---|---|
Time | 2008-01-26 03:07:54 |
Author | Janis Johnson <janis187@us.i...> |
Commiter | Janis Johnson |
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
@@ -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 | + | |
1 | 18 | 2007-11-26 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2 | 19 | |
3 | 20 | * Makefile.in (decimal32.o): Prepend $(srcdir) to dependencies |
@@ -65,9 +65,10 @@ libdecnumber_a_OBJS = decNumber.o decContext.o \ | ||
65 | 65 | |
66 | 66 | libdecnumber_a_SOURCES = decContext.c decContext.h decDPD.h \ |
67 | 67 | 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 \ | |
71 | 72 | bid/decimal128.c bid/decimal128.h \ |
72 | 73 | bid/decimal32.c bid/decimal32.h \ |
73 | 74 | bid/decimal64.c bid/decimal64.h |
@@ -50,6 +50,8 @@ | ||
50 | 50 | /* OR) or the rounding mode read; all other fields are ignored and */ |
51 | 51 | /* untouched. */ |
52 | 52 | |
53 | +#include "decCommonSymbols.h" | |
54 | + | |
53 | 55 | /* names for simpler testing and default context */ |
54 | 56 | #if DECPMAX==7 |
55 | 57 | #define SINGLE 1 |
@@ -17,6 +17,8 @@ | ||
17 | 17 | #define decContextTestSavedStatus __decContextTestSavedStatus |
18 | 18 | #define decContextTestStatus __decContextTestStatus |
19 | 19 | #define decContextZeroStatus __decContextZeroStatus |
20 | +#define DECPOWERS __decPOWERS | |
21 | +#define DECSTICKYTAB __decSTICKYTAB | |
20 | 22 | #endif |
21 | 23 | |
22 | 24 | #endif |
@@ -34,7 +34,9 @@ | ||
34 | 34 | /* ------------------------------------------------------------------------ */ |
35 | 35 | /* ------------------------------------------------------------------------ */ |
36 | 36 | /* For details, see: http://www2.hursley.ibm.com/decimal/DPDecimal.html */ |
37 | -/* */ | |
37 | + | |
38 | +#include "decDPDSymbols.h" | |
39 | + | |
38 | 40 | /* This include file defines several DPD and BCD conversion tables: */ |
39 | 41 | /* */ |
40 | 42 | /* uint16_t BCD2DPD[2458]; -- BCD -> DPD (0x999 => 2457) */ |
@@ -100,6 +100,7 @@ | ||
100 | 100 | extern const uByte DECSTICKYTAB[10]; /* re-round digits if sticky */ |
101 | 101 | extern const uInt DECPOWERS[10]; /* powers of ten table */ |
102 | 102 | /* The following are included from decDPD.h */ |
103 | +#include "decDPDSymbols.h" | |
103 | 104 | extern const uShort DPD2BIN[1024]; /* DPD -> 0-999 */ |
104 | 105 | extern const uShort BIN2DPD[1000]; /* 0-999 -> DPD */ |
105 | 106 | extern const uInt DPD2BINK[1024]; /* DPD -> 0-999000 */ |
@@ -325,6 +326,7 @@ | ||
325 | 326 | #define DFISSNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7e000000) |
326 | 327 | |
327 | 328 | /* Shared lookup tables */ |
329 | +#include "decCommonSymbols.h" | |
328 | 330 | extern const uInt DECCOMBMSD[64]; /* Combination field -> MSD */ |
329 | 331 | extern const uInt DECCOMBFROM[48]; /* exp+msd -> Combination */ |
330 | 332 |
@@ -64,6 +64,8 @@ | ||
64 | 64 | #define decNumberVersion __decNumberVersion |
65 | 65 | #define decNumberXor __decNumberXor |
66 | 66 | #define decNumberZero __decNumberZero |
67 | +#define LNnn __decLNnn | |
68 | +#define d2utable __decd2utable | |
67 | 69 | #endif |
68 | 70 | |
69 | 71 | #endif |
@@ -49,10 +49,6 @@ | ||
49 | 49 | #include "decimal128.h" /* our primary include */ |
50 | 50 | |
51 | 51 | /* 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 | |
56 | 52 | extern const uInt COMBEXP[32], COMBMSD[32]; |
57 | 53 | extern const uShort DPD2BIN[1024]; |
58 | 54 | extern const uShort BIN2DPD[1000]; /* [not used] */ |
@@ -11,6 +11,16 @@ | ||
11 | 11 | #define decimal128ToEngString __decimal128ToEngString |
12 | 12 | #define decimal128ToNumber __decimal128ToNumber |
13 | 13 | #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 | |
14 | 24 | #endif |
15 | 25 | |
16 | 26 | #endif |
@@ -49,10 +49,6 @@ | ||
49 | 49 | #include "decimal32.h" /* our primary include */ |
50 | 50 | |
51 | 51 | /* 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 | |
56 | 52 | extern const uInt COMBEXP[32], COMBMSD[32]; |
57 | 53 | extern const uShort DPD2BIN[1024]; |
58 | 54 | extern const uShort BIN2DPD[1000]; |
@@ -11,6 +11,16 @@ | ||
11 | 11 | #define decimal32ToEngString __decimal32ToEngString |
12 | 12 | #define decimal32ToNumber __decimal32ToNumber |
13 | 13 | #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 | |
14 | 24 | #endif |
15 | 25 | |
16 | 26 | #endif |
@@ -49,10 +49,6 @@ | ||
49 | 49 | #include "decimal64.h" /* our primary include */ |
50 | 50 | |
51 | 51 | /* 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 | |
56 | 52 | extern const uInt COMBEXP[32], COMBMSD[32]; |
57 | 53 | extern const uShort DPD2BIN[1024]; |
58 | 54 | extern const uShort BIN2DPD[1000]; |
@@ -11,6 +11,16 @@ | ||
11 | 11 | #define decimal64ToEngString __decimal64ToEngString |
12 | 12 | #define decimal64ToNumber __decimal64ToNumber |
13 | 13 | #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 | |
14 | 24 | #endif |
15 | 25 | |
16 | 26 | #endif |