Mercurial > games > semicongine
view fuhtark_test/include/ddk/fltsafe.h @ 1501:f40d9d814c08 default tip main
did: correct vulkan-api generator
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 23:34:29 +0700 |
| parents | 91c8c3b7cbf0 |
| children |
line wrap: on
line source
struct FLOATSAFE { KFLOATING_SAVE FloatSave; NTSTATUS ntStatus; FLOATSAFE::FLOATSAFE(void) { ntStatus = KeSaveFloatingPointState(&FloatSave); } FLOATSAFE::~FLOATSAFE(void) { if (NT_SUCCESS(ntStatus)) { KeRestoreFloatingPointState(&FloatSave); } } };
