comparison fuhtark_test/include/ddk/fltsafe.h @ 1500:91c8c3b7cbf0

add: futhark tests for generating vulkan api
author sam <sam@basx.dev>
date Wed, 26 Nov 2025 21:36:48 +0700
parents
children
comparison
equal deleted inserted replaced
1499:1f58458b7ef7 1500:91c8c3b7cbf0
1
2 struct FLOATSAFE
3 {
4 KFLOATING_SAVE FloatSave;
5 NTSTATUS ntStatus;
6
7 FLOATSAFE::FLOATSAFE(void)
8 {
9 ntStatus = KeSaveFloatingPointState(&FloatSave);
10 }
11
12 FLOATSAFE::~FLOATSAFE(void)
13 {
14 if (NT_SUCCESS(ntStatus))
15 {
16 KeRestoreFloatingPointState(&FloatSave);
17 }
18 }
19 };