19 #ifndef _libint2_src_lib_libint_libint2memory_h_ 20 #define _libint2_src_lib_libint_libint2memory_h_ 23 #include <libint2_params.h> 33 #if (LIBINT2_ALIGN_SIZE == 0) 35 #elif defined(HAVE_POSIX_MEMALIGN) 36 posix_memalign(&result, LIBINT2_ALIGN_SIZE*
sizeof(LIBINT2_REALTYPE), nbytes);
38 # error "LIBINT2_ALIGN_SIZE!=0 but posix_memalign is not available" 45 inline T*
malloc(
size_t n) {
46 return reinterpret_cast<T*
>(
malloc(n *
sizeof(T)));
Defaults definitions for various parameters assumed by Libint.
Definition: algebra.cc:23
void * malloc(size_t nbytes)
Aligned version of malloc().
Definition: include/libint2/memory.h:31