@@ -45,7 +45,7 @@ template <> struct FXRep<short fract> {
45
45
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
46
46
47
47
LIBC_INLINE static constexpr Type MIN () { return SFRACT_MIN; }
48
- LIBC_INLINE static constexpr Type MAX () { return SFRACT_MIN ; }
48
+ LIBC_INLINE static constexpr Type MAX () { return SFRACT_MAX ; }
49
49
LIBC_INLINE static constexpr Type ZERO () { return 0 .0HR; }
50
50
LIBC_INLINE static constexpr Type EPS () { return SFRACT_EPSILON; }
51
51
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5HR; }
@@ -65,7 +65,7 @@ template <> struct FXRep<unsigned short fract> {
65
65
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
66
66
67
67
LIBC_INLINE static constexpr Type MIN () { return USFRACT_MIN; }
68
- LIBC_INLINE static constexpr Type MAX () { return USFRACT_MIN ; }
68
+ LIBC_INLINE static constexpr Type MAX () { return USFRACT_MAX ; }
69
69
LIBC_INLINE static constexpr Type ZERO () { return 0 .0UHR; }
70
70
LIBC_INLINE static constexpr Type EPS () { return USFRACT_EPSILON; }
71
71
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5UHR; }
@@ -85,7 +85,7 @@ template <> struct FXRep<fract> {
85
85
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
86
86
87
87
LIBC_INLINE static constexpr Type MIN () { return FRACT_MIN; }
88
- LIBC_INLINE static constexpr Type MAX () { return FRACT_MIN ; }
88
+ LIBC_INLINE static constexpr Type MAX () { return FRACT_MAX ; }
89
89
LIBC_INLINE static constexpr Type ZERO () { return 0 .0R; }
90
90
LIBC_INLINE static constexpr Type EPS () { return FRACT_EPSILON; }
91
91
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5R; }
@@ -105,7 +105,7 @@ template <> struct FXRep<unsigned fract> {
105
105
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
106
106
107
107
LIBC_INLINE static constexpr Type MIN () { return UFRACT_MIN; }
108
- LIBC_INLINE static constexpr Type MAX () { return UFRACT_MIN ; }
108
+ LIBC_INLINE static constexpr Type MAX () { return UFRACT_MAX ; }
109
109
LIBC_INLINE static constexpr Type ZERO () { return 0 .0UR; }
110
110
LIBC_INLINE static constexpr Type EPS () { return UFRACT_EPSILON; }
111
111
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5UR; }
@@ -125,7 +125,7 @@ template <> struct FXRep<long fract> {
125
125
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
126
126
127
127
LIBC_INLINE static constexpr Type MIN () { return LFRACT_MIN; }
128
- LIBC_INLINE static constexpr Type MAX () { return LFRACT_MIN ; }
128
+ LIBC_INLINE static constexpr Type MAX () { return LFRACT_MAX ; }
129
129
LIBC_INLINE static constexpr Type ZERO () { return 0 .0LR; }
130
130
LIBC_INLINE static constexpr Type EPS () { return LFRACT_EPSILON; }
131
131
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5LR; }
@@ -145,7 +145,7 @@ template <> struct FXRep<unsigned long fract> {
145
145
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
146
146
147
147
LIBC_INLINE static constexpr Type MIN () { return ULFRACT_MIN; }
148
- LIBC_INLINE static constexpr Type MAX () { return ULFRACT_MIN ; }
148
+ LIBC_INLINE static constexpr Type MAX () { return ULFRACT_MAX ; }
149
149
LIBC_INLINE static constexpr Type ZERO () { return 0 .0ULR; }
150
150
LIBC_INLINE static constexpr Type EPS () { return ULFRACT_EPSILON; }
151
151
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5ULR; }
@@ -165,7 +165,7 @@ template <> struct FXRep<short accum> {
165
165
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
166
166
167
167
LIBC_INLINE static constexpr Type MIN () { return SACCUM_MIN; }
168
- LIBC_INLINE static constexpr Type MAX () { return SACCUM_MIN ; }
168
+ LIBC_INLINE static constexpr Type MAX () { return SACCUM_MAX ; }
169
169
LIBC_INLINE static constexpr Type ZERO () { return 0 .0HK; }
170
170
LIBC_INLINE static constexpr Type EPS () { return SACCUM_EPSILON; }
171
171
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5HK; }
@@ -185,7 +185,7 @@ template <> struct FXRep<unsigned short accum> {
185
185
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
186
186
187
187
LIBC_INLINE static constexpr Type MIN () { return USACCUM_MIN; }
188
- LIBC_INLINE static constexpr Type MAX () { return USACCUM_MIN ; }
188
+ LIBC_INLINE static constexpr Type MAX () { return USACCUM_MAX ; }
189
189
LIBC_INLINE static constexpr Type ZERO () { return 0 .0UHK; }
190
190
LIBC_INLINE static constexpr Type EPS () { return USACCUM_EPSILON; }
191
191
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5UHK; }
@@ -205,7 +205,7 @@ template <> struct FXRep<accum> {
205
205
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
206
206
207
207
LIBC_INLINE static constexpr Type MIN () { return ACCUM_MIN; }
208
- LIBC_INLINE static constexpr Type MAX () { return ACCUM_MIN ; }
208
+ LIBC_INLINE static constexpr Type MAX () { return ACCUM_MAX ; }
209
209
LIBC_INLINE static constexpr Type ZERO () { return 0 .0K; }
210
210
LIBC_INLINE static constexpr Type EPS () { return ACCUM_EPSILON; }
211
211
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5K; }
@@ -225,7 +225,7 @@ template <> struct FXRep<unsigned accum> {
225
225
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
226
226
227
227
LIBC_INLINE static constexpr Type MIN () { return UACCUM_MIN; }
228
- LIBC_INLINE static constexpr Type MAX () { return UACCUM_MIN ; }
228
+ LIBC_INLINE static constexpr Type MAX () { return UACCUM_MAX ; }
229
229
LIBC_INLINE static constexpr Type ZERO () { return 0 .0UK; }
230
230
LIBC_INLINE static constexpr Type EPS () { return UACCUM_EPSILON; }
231
231
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5UK; }
@@ -245,7 +245,7 @@ template <> struct FXRep<long accum> {
245
245
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
246
246
247
247
LIBC_INLINE static constexpr Type MIN () { return LACCUM_MIN; }
248
- LIBC_INLINE static constexpr Type MAX () { return LACCUM_MIN ; }
248
+ LIBC_INLINE static constexpr Type MAX () { return LACCUM_MAX ; }
249
249
LIBC_INLINE static constexpr Type ZERO () { return 0 .0LK; }
250
250
LIBC_INLINE static constexpr Type EPS () { return LACCUM_EPSILON; }
251
251
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5LK; }
@@ -265,7 +265,7 @@ template <> struct FXRep<unsigned long accum> {
265
265
SIGN_LEN + INTEGRAL_LEN + FRACTION_LEN;
266
266
267
267
LIBC_INLINE static constexpr Type MIN () { return ULACCUM_MIN; }
268
- LIBC_INLINE static constexpr Type MAX () { return ULACCUM_MIN ; }
268
+ LIBC_INLINE static constexpr Type MAX () { return ULACCUM_MAX ; }
269
269
LIBC_INLINE static constexpr Type ZERO () { return 0 .0ULK; }
270
270
LIBC_INLINE static constexpr Type EPS () { return ULACCUM_EPSILON; }
271
271
LIBC_INLINE static constexpr Type ONE_HALF () { return 0 .5ULK; }
0 commit comments