mirror of
https://github.com/reactos/reactos.git
synced 2024-08-16 16:39:08 +00:00
20 lines
305 B
C
20 lines
305 B
C
|
|
struct FLOATSAFE
|
|
{
|
|
KFLOATING_SAVE FloatSave;
|
|
NTSTATUS ntStatus;
|
|
|
|
FLOATSAFE::FLOATSAFE(void)
|
|
{
|
|
ntStatus = KeSaveFloatingPointState(&FloatSave);
|
|
}
|
|
|
|
FLOATSAFE::~FLOATSAFE(void)
|
|
{
|
|
if (NT_SUCCESS(ntStatus))
|
|
{
|
|
KeRestoreFloatingPointState(&FloatSave);
|
|
}
|
|
}
|
|
};
|