MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / aligned_new

Function aligned_new

encoder/cppspmd_sse.h:126–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124const int PROGRAM_COUNT = 1 << PROGRAM_COUNT_SHIFT;
125
126template <typename N> inline N* aligned_new() { void* p = _mm_malloc(sizeof(N), 64); new (p) N; return static_cast<N*>(p); }
127template <typename N> void aligned_delete(N* p) { if (p) { p->~N(); _mm_free(p); } }
128
129CPPSPMD_DECL(const uint32_t, g_allones_128[4]) = { UINT32_MAX, UINT32_MAX, UINT32_MAX, UINT32_MAX };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected