We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4419ff2 commit 909e064Copy full SHA for 909e064
libc/src/__support/FPUtil/x86_64/FEnvImpl.h
@@ -142,7 +142,9 @@ LIBC_INLINE static int get_env(fenv_t *env) {
142
// we merge sse data to x87 state.
143
internal::mxcsr_to_x87_state(static_cast<uint16_t>(mxcsr), x87_state);
144
// Copy the state data;
145
- cpp::bit_copy(x87_state, *env);
+ const char *x87_state_ptr = reinterpret_cast<const char *>(&x87_state);
146
+ char *fenv_ptr = reinterpret_cast<char *>(env);
147
+ cpp::inline_copy<sizeof(x87_state)>(x87_state_ptr, fenv_ptr);
148
} else {
149
// We expect to have at least extra 32-bit for mxcsr register in the
150
// fenv_t.
0 commit comments