First commit

This commit is contained in:
coissac committed 2022-01-13 23:27:39 +01:00
1 parent dab6549cad
commit f53bf1b804
93 files changed
+11042

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#ifndef __APAT_MEM_H__
#define __APAT_MEM_H__
/* ----------------------------------------------- */
/* macros */
/* ----------------------------------------------- */
#define NEW(typ) (typ*)malloc(sizeof(typ))
#define NEWN(typ, dim) (typ*)malloc((uint64_t)(dim) * sizeof(typ))
#define REALLOC(typ, ptr, dim) (typ*)realloc((void *) (ptr), (uint64_t)(dim) * sizeof(typ))
#define FREE(ptr) free((void *) ptr)
#endif /* __APAT_MEM_H__ */