Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2021-06-15 03:04:32 +0300
committerBartosz Taudul <wolf@nereid.pl>2021-06-15 03:04:32 +0300
commitdb1dc311b08913501031b5b53554e96bfac3ff36 (patch)
treead1662e302ec1312b8b1c3fc8975ede259d756a5 /server/TracyEvent.hpp
parent0fdd5ab01b49f19a4b0bc64bd8b6f5b44e48c62c (diff)
Add Int48 clearing function.
Diffstat (limited to 'server/TracyEvent.hpp')
-rw-r--r--server/TracyEvent.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp
index cf60cd21..ea38166c 100644
--- a/server/TracyEvent.hpp
+++ b/server/TracyEvent.hpp
@@ -133,6 +133,11 @@ public:
SetVal( val );
}
+ tracy_force_inline void Clear()
+ {
+ memset( m_val, 0, 6 );
+ }
+
tracy_force_inline void SetVal( int64_t val )
{
memcpy( m_val, &val, 4 );