@@ -43,8 +43,10 @@ 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 VALUE_LEN =
47
+ INTEGRAL_LEN + FRACTION_LEN;
46
48
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
47
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
49
+ SIGN_LEN + VALUE_LEN ;
48
50
49
51
LIBC_INLINE static constexpr Type MIN () { return SFRACT_MIN; }
50
52
LIBC_INLINE static constexpr Type MAX () { return SFRACT_MAX; }
@@ -63,8 +65,10 @@ template <> struct FXRep<unsigned short fract> {
63
65
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
64
66
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
65
67
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = USFRACT_FBIT;
68
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
69
+ INTEGRAL_LEN + FRACTION_LEN;
66
70
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
67
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
71
+ SIGN_LEN + VALUE_LEN ;
68
72
69
73
LIBC_INLINE static constexpr Type MIN () { return USFRACT_MIN; }
70
74
LIBC_INLINE static constexpr Type MAX () { return USFRACT_MAX; }
@@ -83,8 +87,10 @@ template <> struct FXRep<fract> {
83
87
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
84
88
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
85
89
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = FRACT_FBIT;
90
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
91
+ INTEGRAL_LEN + FRACTION_LEN;
86
92
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
87
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
93
+ SIGN_LEN + VALUE_LEN ;
88
94
89
95
LIBC_INLINE static constexpr Type MIN () { return FRACT_MIN; }
90
96
LIBC_INLINE static constexpr Type MAX () { return FRACT_MAX; }
@@ -103,8 +109,10 @@ template <> struct FXRep<unsigned fract> {
103
109
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
104
110
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
105
111
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = UFRACT_FBIT;
112
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
113
+ INTEGRAL_LEN + FRACTION_LEN;
106
114
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
107
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
115
+ SIGN_LEN + VALUE_LEN ;
108
116
109
117
LIBC_INLINE static constexpr Type MIN () { return UFRACT_MIN; }
110
118
LIBC_INLINE static constexpr Type MAX () { return UFRACT_MAX; }
@@ -123,8 +131,10 @@ template <> struct FXRep<long fract> {
123
131
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
124
132
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
125
133
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = LFRACT_FBIT;
134
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
135
+ INTEGRAL_LEN + FRACTION_LEN;
126
136
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
127
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
137
+ SIGN_LEN + VALUE_LEN ;
128
138
129
139
LIBC_INLINE static constexpr Type MIN () { return LFRACT_MIN; }
130
140
LIBC_INLINE static constexpr Type MAX () { return LFRACT_MAX; }
@@ -143,8 +153,10 @@ template <> struct FXRep<unsigned long fract> {
143
153
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
144
154
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0 ;
145
155
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = ULFRACT_FBIT;
156
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
157
+ INTEGRAL_LEN + FRACTION_LEN;
146
158
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
147
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
159
+ SIGN_LEN + VALUE_LEN ;
148
160
149
161
LIBC_INLINE static constexpr Type MIN () { return ULFRACT_MIN; }
150
162
LIBC_INLINE static constexpr Type MAX () { return ULFRACT_MAX; }
@@ -163,8 +175,10 @@ template <> struct FXRep<short accum> {
163
175
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
164
176
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = SACCUM_IBIT;
165
177
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = SACCUM_FBIT;
178
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
179
+ INTEGRAL_LEN + FRACTION_LEN;
166
180
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
167
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
181
+ SIGN_LEN + VALUE_LEN ;
168
182
169
183
LIBC_INLINE static constexpr Type MIN () { return SACCUM_MIN; }
170
184
LIBC_INLINE static constexpr Type MAX () { return SACCUM_MAX; }
@@ -183,8 +197,10 @@ template <> struct FXRep<unsigned short accum> {
183
197
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
184
198
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = USACCUM_IBIT;
185
199
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = USACCUM_FBIT;
200
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
201
+ INTEGRAL_LEN + FRACTION_LEN;
186
202
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
187
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
203
+ SIGN_LEN + VALUE_LEN ;
188
204
189
205
LIBC_INLINE static constexpr Type MIN () { return USACCUM_MIN; }
190
206
LIBC_INLINE static constexpr Type MAX () { return USACCUM_MAX; }
@@ -203,8 +219,10 @@ template <> struct FXRep<accum> {
203
219
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
204
220
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = ACCUM_IBIT;
205
221
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = ACCUM_FBIT;
222
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
223
+ INTEGRAL_LEN + FRACTION_LEN;
206
224
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
207
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
225
+ SIGN_LEN + VALUE_LEN ;
208
226
209
227
LIBC_INLINE static constexpr Type MIN () { return ACCUM_MIN; }
210
228
LIBC_INLINE static constexpr Type MAX () { return ACCUM_MAX; }
@@ -223,8 +241,10 @@ template <> struct FXRep<unsigned accum> {
223
241
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
224
242
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = UACCUM_IBIT;
225
243
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = UACCUM_FBIT;
244
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
245
+ INTEGRAL_LEN + FRACTION_LEN;
226
246
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
227
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
247
+ SIGN_LEN + VALUE_LEN ;
228
248
229
249
LIBC_INLINE static constexpr Type MIN () { return UACCUM_MIN; }
230
250
LIBC_INLINE static constexpr Type MAX () { return UACCUM_MAX; }
@@ -243,8 +263,10 @@ template <> struct FXRep<long accum> {
243
263
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1 ;
244
264
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = LACCUM_IBIT;
245
265
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = LACCUM_FBIT;
266
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
267
+ INTEGRAL_LEN + FRACTION_LEN;
246
268
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
247
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
269
+ SIGN_LEN + VALUE_LEN ;
248
270
249
271
LIBC_INLINE static constexpr Type MIN () { return LACCUM_MIN; }
250
272
LIBC_INLINE static constexpr Type MAX () { return LACCUM_MAX; }
@@ -263,8 +285,10 @@ template <> struct FXRep<unsigned long accum> {
263
285
LIBC_INLINE_VAR static constexpr int SIGN_LEN = 0 ;
264
286
LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = ULACCUM_IBIT;
265
287
LIBC_INLINE_VAR static constexpr int FRACTION_LEN = ULACCUM_FBIT;
288
+ LIBC_INLINE_VAR static constexpr int VALUE_LEN =
289
+ INTEGRAL_LEN + FRACTION_LEN;
266
290
LIBC_INLINE_VAR static constexpr int TOTAL_LEN =
267
- SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN ;
291
+ SIGN_LEN + VALUE_LEN ;
268
292
269
293
LIBC_INLINE static constexpr Type MIN () { return ULACCUM_MIN; }
270
294
LIBC_INLINE static constexpr Type MAX () { return ULACCUM_MAX; }
0 commit comments