File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
libc/src/__support/FPUtil/aarch64 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed 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 = FPBits<float >::max_normal ();
165
- float small_value = FPBits<float >::min_normal ();
164
+ float large_value = FPBits<float >::max_normal (). get_val () ;
165
+ float small_value = FPBits<float >::min_normal (). get_val () ;
166
166
auto divfunc = [](float a, float b) {
167
167
__asm__ __volatile__ (" ldr s0, %0\n\t "
168
168
" ldr s1, %1\n\t "
@@ -277,8 +277,8 @@ LIBC_INLINE int set_env(const fenv_t *envp) {
277
277
return 0 ;
278
278
}
279
279
const FEnv::FPState *state = reinterpret_cast <const FEnv::FPState *>(envp);
280
- FEnv::set_control_word (state->ControlWord );
281
- FEnv::set_status_word (state->StatusWord );
280
+ FEnv::set_control_word (static_cast < uint32_t >( state->ControlWord ) );
281
+ FEnv::set_status_word (static_cast < uint32_t >( state->StatusWord ) );
282
282
return 0 ;
283
283
}
284
284
You can’t perform that action at this time.
0 commit comments