7 #include <sys/resource.h> 11 #define PR_UNALLOCATED_FLOAT 7.77e77 42 template<MemType SRC_MEM=MEMTYPE_DEFAULT, MemType DST_MEM=MEMTYPE_DEFAULT>
43 inline void proto_memcpy(
const void* a_src,
void* a_dst,
size_t a_nbytes);
55 template<MemType MEM=MEMTYPE_DEFAULT>
68 template<MemType MEM=MEMTYPE_DEFAULT>
84 if constexpr (std::is_floating_point_v<T>)
89 return std::numeric_limits<T>::max()-1;
MemType pointerMemType(const void *a_ptr)
Query Pointer MemType.
MemType
Definition: Proto_MemType.H:7
void proto_memcpy(const void *a_src, void *a_dst, size_t a_nbytes)
Copy Memory.
#define PR_UNALLOCATED_FLOAT
Definition: Proto_Memory.H:11
void * proto_malloc(size_t a_nbytes)
Allocate Memory.
constexpr T proto_unallocated()
Definition: Proto_Memory.H:82
Definition: Proto_Array.H:17
void proto_free(void *a_buffer)
Free Memory.