MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / deallocate

Method deallocate

extra/yassl/taocrypt/src/integer.cpp:106–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105template <class T>
106void AlignedAllocator<T>::deallocate(void* p, size_type n)
107{
108 memset(p, 0, n*sizeof(T));
109 if (n >= 4)
110 {
111 #ifdef TAOCRYPT_MM_MALLOC_AVAILABLE
112 _mm_free(p);
113 #elif defined(TAOCRYPT_NO_ALIGNED_ALLOC)
114 free(m_pBlock);
115 m_pBlock = 0;
116 #else
117 free(p);
118 #endif
119 }
120 else
121 tcArrayDelete((T *)p);
122}
123
124#endif // SSE2
125

Callers

nothing calls this directly

Calls 1

tcArrayDeleteFunction · 0.85

Tested by

no test coverage detected