22 #ifndef KFPSimdAllocator_H
23 #define KFPSimdAllocator_H
77 return std::numeric_limits<std::size_t>::max() /
sizeof(
T);
107 operator delete(
static_cast<void*
>(
p), num*
sizeof(
T));
111 void *
operator new(
size_t size,
void *ptr) { return ::operator
new(
size, ptr);}
112 void *
operator new[](
size_t size,
void *ptr) { return ::operator
new(
size, ptr);}
113 void *
operator new(
size_t size) {
return _mm_malloc(
size,
sizeof(Vc::float_v)); }
114 void *
operator new[](
size_t size) {
return _mm_malloc(
size,
sizeof(Vc::float_v)); }
115 void operator delete(
void *ptr, size_t) { _mm_free(ptr); }
116 void operator delete[](
void *ptr, size_t) { _mm_free(ptr); }
119 #endif //KFPSimdAllocator