openal-soft/Alc/fpu_modes.h
2019-03-18 20:27:25 -07:00

21 lines
390 B
C++

#ifndef FPU_MODES_H
#define FPU_MODES_H
class FPUCtl {
#if defined(HAVE_SSE_INTRINSICS) || (defined(__GNUC__) && defined(HAVE_SSE))
unsigned int sse_state{};
#endif
bool in_mode{};
public:
FPUCtl() noexcept;
~FPUCtl() { leave(); }
FPUCtl(const FPUCtl&) = delete;
FPUCtl& operator=(const FPUCtl&) = delete;
void leave() noexcept;
};
#endif /* FPU_MODES_H */