@@ -43,8 +43,8 @@ template <> struct FXRep<short fract> {
43
43
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
44
44
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
45
45
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = SFRACT_FBIT;
46
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
47
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
46
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
47
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
48
48
49
49
LIBC_INLINE static constexpr Type MIN () { return SFRACT_MIN; }
50
50
LIBC_INLINE static constexpr Type MAX () { return SFRACT_MAX; }
@@ -63,8 +63,8 @@ template <> struct FXRep<unsigned short fract> {
63
63
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
64
64
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
65
65
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = USFRACT_FBIT;
66
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
67
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
66
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
67
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
68
68
69
69
LIBC_INLINE static constexpr Type MIN () { return USFRACT_MIN; }
70
70
LIBC_INLINE static constexpr Type MAX () { return USFRACT_MAX; }
@@ -83,8 +83,8 @@ template <> struct FXRep<fract> {
83
83
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
84
84
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
85
85
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = FRACT_FBIT;
86
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
87
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
86
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
87
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
88
88
89
89
LIBC_INLINE static constexpr Type MIN () { return FRACT_MIN; }
90
90
LIBC_INLINE static constexpr Type MAX () { return FRACT_MAX; }
@@ -103,8 +103,8 @@ template <> struct FXRep<unsigned fract> {
103
103
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
104
104
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
105
105
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = UFRACT_FBIT;
106
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
107
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
106
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
107
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
108
108
109
109
LIBC_INLINE static constexpr Type MIN () { return UFRACT_MIN; }
110
110
LIBC_INLINE static constexpr Type MAX () { return UFRACT_MAX; }
@@ -123,8 +123,8 @@ template <> struct FXRep<long fract> {
123
123
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
124
124
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
125
125
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = LFRACT_FBIT;
126
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
127
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
126
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
127
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
128
128
129
129
LIBC_INLINE static constexpr Type MIN () { return LFRACT_MIN; }
130
130
LIBC_INLINE static constexpr Type MAX () { return LFRACT_MAX; }
@@ -143,8 +143,8 @@ template <> struct FXRep<unsigned long fract> {
143
143
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
144
144
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
145
145
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = ULFRACT_FBIT;
146
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
147
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
146
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
147
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
148
148
149
149
LIBC_INLINE static constexpr Type MIN () { return ULFRACT_MIN; }
150
150
LIBC_INLINE static constexpr Type MAX () { return ULFRACT_MAX; }
@@ -163,8 +163,8 @@ template <> struct FXRep<short accum> {
163
163
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
164
164
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = SACCUM_IBIT;
165
165
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = SACCUM_FBIT;
166
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
167
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
166
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
167
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
168
168
169
169
LIBC_INLINE static constexpr Type MIN () { return SACCUM_MIN; }
170
170
LIBC_INLINE static constexpr Type MAX () { return SACCUM_MAX; }
@@ -183,8 +183,8 @@ template <> struct FXRep<unsigned short accum> {
183
183
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
184
184
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = USACCUM_IBIT;
185
185
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = USACCUM_FBIT;
186
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
187
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
186
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
187
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
188
188
189
189
LIBC_INLINE static constexpr Type MIN () { return USACCUM_MIN; }
190
190
LIBC_INLINE static constexpr Type MAX () { return USACCUM_MAX; }
@@ -203,8 +203,8 @@ template <> struct FXRep<accum> {
203
203
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
204
204
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = ACCUM_IBIT;
205
205
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = ACCUM_FBIT;
206
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
207
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
206
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
207
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
208
208
209
209
LIBC_INLINE static constexpr Type MIN () { return ACCUM_MIN; }
210
210
LIBC_INLINE static constexpr Type MAX () { return ACCUM_MAX; }
@@ -223,8 +223,8 @@ template <> struct FXRep<unsigned accum> {
223
223
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
224
224
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = UACCUM_IBIT;
225
225
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = UACCUM_FBIT;
226
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
227
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
226
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
227
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
228
228
229
229
LIBC_INLINE static constexpr Type MIN () { return UACCUM_MIN; }
230
230
LIBC_INLINE static constexpr Type MAX () { return UACCUM_MAX; }
@@ -243,8 +243,8 @@ template <> struct FXRep<long accum> {
243
243
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
244
244
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = LACCUM_IBIT;
245
245
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = LACCUM_FBIT;
246
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
247
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
246
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
247
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
248
248
249
249
LIBC_INLINE static constexpr Type MIN () { return LACCUM_MIN; }
250
250
LIBC_INLINE static constexpr Type MAX () { return LACCUM_MAX; }
@@ -263,8 +263,8 @@ template <> struct FXRep<unsigned long accum> {
263
263
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
264
264
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = ULACCUM_IBIT;
265
265
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = ULACCUM_FBIT;
266
- LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
267
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
266
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
267
+ LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN ;
268
268
269
269
LIBC_INLINE static constexpr Type MIN () { return ULACCUM_MIN; }
270
270
LIBC_INLINE static constexpr Type MAX () { return ULACCUM_MAX; }
0 commit comments