File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
libc/src/__support/FPUtil Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ LIBC_INLINE int set_except(int excepts) {
155
155
LIBC_INLINE int raise_except (int excepts) {
156
156
float zero = 0 .0f ;
157
157
float one = 1 .0f ;
158
- float largeValue = float ( FPBits<float >(FPBits< float >::MAX_NORMAL) );
159
- float smallValue = float ( FPBits<float >(FPBits< float >::MIN_NORMAL) );
158
+ float largeValue = FPBits<float >:: max_normal ( );
159
+ float smallValue = FPBits<float >:: min_normal ( );
160
160
auto divfunc = [](float a, float b) {
161
161
__asm__ __volatile__ (" ldr s0, %0\n\t "
162
162
" ldr s1, %1\n\t "
Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ LIBC_INLINE int set_except(int excepts) {
161
161
LIBC_INLINE int raise_except (int excepts) {
162
162
float zero = 0 .0f ;
163
163
float one = 1 .0f ;
164
- float large_value = float ( FPBits<float >(FPBits< float >::MAX_NORMAL) );
165
- float small_value = float ( FPBits<float >(FPBits< float >::MIN_NORMAL) );
164
+ float large_value = FPBits<float >:: max_normal ( );
165
+ float small_value = FPBits<float >:: min_normal ( );
166
166
auto divfunc = [](float a, float b) {
167
167
__asm__ __volatile__ (" ldr s0, %0\n\t "
168
168
" ldr s1, %1\n\t "
Original file line number Diff line number Diff line change @@ -135,8 +135,8 @@ LIBC_INLINE int set_except(int excepts) {
135
135
LIBC_INLINE int raise_except (int excepts) {
136
136
float zero = 0 .0f ;
137
137
float one = 1 .0f ;
138
- float large_value = float ( FPBits<float >(FPBits< float >::MAX_NORMAL) );
139
- float small_value = float ( FPBits<float >(FPBits< float >::MIN_NORMAL) );
138
+ float large_value = FPBits<float >:: max_normal ( );
139
+ float small_value = FPBits<float >:: min_normal ( );
140
140
auto divfunc = [](float a, float b) {
141
141
__asm__ __volatile__ (" flds s0, %0\n\t "
142
142
" flds s1, %1\n\t "
You can’t perform that action at this time.
0 commit comments