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.pld@gmail.com>2019-03-04 00:09:20 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-03-04 00:09:20 +0300
commite13286936c94b854dda274af92c35f8ec97fa36d (patch)
tree0e8d06038bf9cc21eaff9951f82cab1959b8d655 /server/TracyVarArray.hpp
parentf6913eecf0e8197d8624d7364d5bd7babc3164da (diff)
Mark templated functions inline.
Diffstat (limited to 'server/TracyVarArray.hpp')
-rw-r--r--server/TracyVarArray.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/TracyVarArray.hpp b/server/TracyVarArray.hpp
index 72684021..c4670d7b 100644
--- a/server/TracyVarArray.hpp
+++ b/server/TracyVarArray.hpp
@@ -56,7 +56,7 @@ private:
#pragma pack()
template<typename T>
-void VarArray<T>::CalcHash()
+inline void VarArray<T>::CalcHash()
{
T hash = 5381;
for( uint8_t i=0; i<m_size; i++ )
@@ -67,7 +67,7 @@ void VarArray<T>::CalcHash()
}
template<>
-void VarArray<CallstackFrameId>::CalcHash()
+inline void VarArray<CallstackFrameId>::CalcHash()
{
uint64_t hash = 5381;
for( uint8_t i=0; i<m_size; i++ )
@@ -78,7 +78,7 @@ void VarArray<CallstackFrameId>::CalcHash()
}
template<typename T>
-bool Compare( const VarArray<T>& lhs, const VarArray<T>& rhs )
+static inline bool Compare( const VarArray<T>& lhs, const VarArray<T>& rhs )
{
if( lhs.size() != rhs.size() || lhs.get_hash() != rhs.get_hash() ) return false;
return memcmp( lhs.data(), rhs.data(), lhs.size() * sizeof( T ) ) == 0;