1 #ifndef CORE_FPU_CTRL_H
2 #define CORE_FPU_CTRL_H
5 unsigned int sse_state
{};
8 static unsigned int Set() noexcept
;
9 static void Reset(unsigned int state
) noexcept
;
12 FPUCtl() noexcept
: sse_state
{Set()}, in_mode
{true} { }
13 ~FPUCtl() { if(in_mode
) Reset(sse_state
); }
15 FPUCtl(const FPUCtl
&) = delete;
16 FPUCtl
& operator=(const FPUCtl
&) = delete;
32 #endif /* CORE_FPU_CTRL_H */