21 #ifndef _libint2_src_lib_libint_libint2memory_h_ 22 #define _libint2_src_lib_libint_libint2memory_h_ 25 #include <libint2/util/generated/libint2_params.h> 35 #if (LIBINT2_ALIGN_SIZE == 0) 37 #elif defined(HAVE_POSIX_MEMALIGN) 38 posix_memalign(&result, LIBINT2_ALIGN_SIZE*
sizeof(LIBINT2_REALTYPE), nbytes);
40 # error "LIBINT2_ALIGN_SIZE!=0 but posix_memalign is not available" 47 inline T*
malloc(
size_t n) {
48 return reinterpret_cast<T*>(
malloc(n *
sizeof(T)));
Defaults definitions for various parameters assumed by Libint.
Definition: algebra.cc:24
void * malloc(size_t nbytes)
Aligned version of malloc().
Definition: include/libint2/util/memory.h:33