1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use short ptr in VarArray.

This commit is contained in:
Bartosz Taudul
2019-11-03 16:29:05 +01:00
parent 390558b627
commit 5620597fb4
2 changed files with 8 additions and 4 deletions
+6 -2
View File
@@ -7,8 +7,9 @@
#include "../common/TracyForceInline.hpp"
#include "tracy_flat_hash_map.hpp"
#include "TracyCharUtil.hpp"
#include "TracyMemory.hpp"
#include "TracyEvent.hpp"
#include "TracyMemory.hpp"
#include "TracyShortPtr.hpp"
namespace tracy
{
@@ -51,10 +52,13 @@ private:
uint8_t m_size;
uint32_t m_hash;
const T* m_ptr;
const short_ptr<T> m_ptr;
};
#pragma pack()
enum { VarArraySize = sizeof( VarArray<int> ) };
template<typename T>
inline void VarArray<T>::CalcHash()
{