mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-10 22:32:10 +02:00
Properly handle move semantics in the scoped FTZ
This commit is contained in:
+4
-1
@@ -97,6 +97,9 @@ class ScopedFlushToZero {
|
||||
ScopedFlushToZero(const ScopedFlushToZero&) = delete;
|
||||
ScopedFlushToZero& operator=(const ScopedFlushToZero&) = delete;
|
||||
|
||||
ScopedFlushToZero(ScopedFlushToZero&&);
|
||||
ScopedFlushToZero& operator=(ScopedFlushToZero&&);
|
||||
|
||||
private:
|
||||
/**
|
||||
* The previous FTZ mode. When we use this on the Wine side, this should
|
||||
@@ -104,5 +107,5 @@ class ScopedFlushToZero {
|
||||
* don't accidentally end up disabling FTZ somewhere where it should be
|
||||
* enabled.
|
||||
*/
|
||||
unsigned int old_ftz_mode;
|
||||
std::optional<unsigned int> old_ftz_mode;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user