1 #ifndef CORE_FPU_CTRL_H
2 #define CORE_FPU_CTRL_H
5 #if defined(HAVE_SSE_INTRINSICS) || (defined(__GNUC__) && defined(HAVE_SSE))
6 unsigned int sse_state
{};
11 FPUCtl() noexcept
{ enter(); in_mode
= true; }
12 ~FPUCtl() { if(in_mode
) leave(); }
14 FPUCtl(const FPUCtl
&) = delete;
15 FPUCtl
& operator=(const FPUCtl
&) = delete;
17 void enter() noexcept
;
18 void leave() noexcept
;
21 #endif /* CORE_FPU_CTRL_H */