| 104 | |
| 105 | template <class T> |
| 106 | void 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 |
nothing calls this directly
no test coverage detected