forked from pool/texlive
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=430
93 lines
3.6 KiB
Plaintext
93 lines
3.6 KiB
Plaintext
---
|
|
libs/icu/icu-src/source/i18n/decNumber.h | 20 +++++++++++++-------
|
|
texk/web2c/mplibdir/decNumber.h | 20 +++++++++++++-------
|
|
2 files changed, 26 insertions(+), 14 deletions(-)
|
|
|
|
--- libs/icu/icu-src/source/i18n/decNumber.h
|
|
+++ libs/icu/icu-src/source/i18n/decNumber.h 2023-03-28 07:17:36.817182422 +0000
|
|
@@ -53,29 +53,35 @@
|
|
/* constant. This must not be changed without recompiling the */
|
|
/* decNumber library modules. */
|
|
|
|
+ #ifndef DECDPUN
|
|
/* For ICU, use one digit per byte, to make it easier to emulate the
|
|
* old DigitList interface on top of a decNumber
|
|
*/
|
|
#define DECDPUN 1 /* DECimal Digits Per UNit [must be >0 */
|
|
/* and <10; 3 or powers of 2 are best]. */
|
|
-
|
|
- /* DECNUMDIGITS is the default number of digits that can be held in */
|
|
- /* the structure. If undefined, 1 is assumed and it is assumed */
|
|
- /* that the structure will be immediately followed by extra space, */
|
|
- /* as required. DECNUMDIGITS is always >0. */
|
|
- #if !defined(DECNUMDIGITS)
|
|
- #define DECNUMDIGITS 1
|
|
#endif
|
|
|
|
/* The size (integer data type) of each unit is determined by the */
|
|
/* number of digits it will hold. */
|
|
#if DECDPUN<=2
|
|
#define decNumberUnit uint8_t
|
|
+ #define DECNUMDIGITS 3
|
|
#elif DECDPUN<=4
|
|
#define decNumberUnit uint16_t
|
|
+ #define DECNUMDIGITS 2
|
|
#else
|
|
#define decNumberUnit uint32_t
|
|
+ #define DECNUMDIGITS 1
|
|
#endif
|
|
+
|
|
+ /* DECNUMDIGITS is the default number of digits that can be held in */
|
|
+ /* the structure. If undefined, 1 is assumed and it is assumed */
|
|
+ /* that the structure will be immediately followed by extra space, */
|
|
+ /* as required. DECNUMDIGITS is always >0. */
|
|
+ #if !defined(DECNUMDIGITS)
|
|
+ #define DECNUMDIGITS 1
|
|
+ #endif
|
|
+
|
|
/* The number of units needed is ceil(DECNUMDIGITS/DECDPUN) */
|
|
#define DECNUMUNITS ((DECNUMDIGITS+DECDPUN-1)/DECDPUN)
|
|
|
|
--- texk/web2c/mplibdir/decNumber.h
|
|
+++ texk/web2c/mplibdir/decNumber.h 2023-03-28 07:19:36.706899490 +0000
|
|
@@ -40,26 +40,32 @@
|
|
/* constant. This must not be changed without recompiling the */
|
|
/* decNumber library modules. */
|
|
|
|
+ #ifndef DECDPUN
|
|
#define DECDPUN 3 /* DECimal Digits Per UNit [must be >0 */
|
|
/* and <10; 3 or powers of 2 are best]. */
|
|
-
|
|
- /* DECNUMDIGITS is the default number of digits that can be held in */
|
|
- /* the structure. If undefined, 1 is assumed and it is assumed */
|
|
- /* that the structure will be immediately followed by extra space, */
|
|
- /* as required. DECNUMDIGITS is always >0. */
|
|
- #if !defined(DECNUMDIGITS)
|
|
- #define DECNUMDIGITS 1
|
|
#endif
|
|
|
|
/* The size (integer data type) of each unit is determined by the */
|
|
/* number of digits it will hold. */
|
|
#if DECDPUN<=2
|
|
#define decNumberUnit uint8_t
|
|
+ #define DECNUMDIGITS 3
|
|
#elif DECDPUN<=4
|
|
#define decNumberUnit uint16_t
|
|
+ #define DECNUMDIGITS 2
|
|
#else
|
|
#define decNumberUnit uint32_t
|
|
+ #define DECNUMDIGITS 1
|
|
#endif
|
|
+
|
|
+ /* DECNUMDIGITS is the default number of digits that can be held in */
|
|
+ /* the structure. If undefined, 1 is assumed and it is assumed */
|
|
+ /* that the structure will be immediately followed by extra space, */
|
|
+ /* as required. DECNUMDIGITS is always >0. */
|
|
+ #if !defined(DECNUMDIGITS)
|
|
+ #define DECNUMDIGITS 1
|
|
+ #endif
|
|
+
|
|
/* The number of units needed is ceil(DECNUMDIGITS/DECDPUN) */
|
|
#define DECNUMUNITS ((DECNUMDIGITS+DECDPUN-1)/DECDPUN)
|
|
|