| Revision: | 1166 |
| Committed: | Tue Oct 26 14:22:36 2021 UTC (4 years ago) by rossy |
| Content type: | text/x-chdr |
| File size: | 322 byte(s) |
| Log Message: | Daodan: Replace MinGW build env with an up-to-date MSYS2 env |
| # | Content |
|---|---|
| 1 | #if (NTDDI_VERSION >= NTDDI_WINXP) |
| 2 | struct FLOATSAFE { |
| 3 | KFLOATING_SAVE FloatSave; |
| 4 | NTSTATUS ntStatus; |
| 5 | FLOATSAFE::FLOATSAFE(void) { |
| 6 | ntStatus = KeSaveFloatingPointState(&FloatSave); |
| 7 | } |
| 8 | FLOATSAFE::~FLOATSAFE(void) { |
| 9 | if (NT_SUCCESS(ntStatus)) { |
| 10 | KeRestoreFloatingPointState(&FloatSave); |
| 11 | } |
| 12 | } |
| 13 | }; |
| 14 | #endif |