-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathm.h
More file actions
29 lines (25 loc) · 733 Bytes
/
m.h
File metadata and controls
29 lines (25 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//! \file m.h memory management exports
#ifndef COSMO
#include<unistd.h>
#include<sys/syscall.h>
#include<errno.h>
#include<sys/types.h>
#include<sys/mman.h>
#include<sys/stat.h>
#include<fcntl.h>
#endif
#include"c.h"
#ifndef COSMO
K m1(J n);V1(r0);V1(l0);K3(l1);K1(l2);K tn(I t,I n),r1(K),xiy(K x,I i,K y);K2(j2);J ws();K mf(S s,J*n);V csr();
#else
K1(l2);K mf(S s,J*n);
#endif
#ifndef SYMS
#define W0 -32 //32 is the size of seed alloc c0() \see init()
#else
#define W0 -128-64 //64 is the size of seed alloc c0() plus HT header \see init()
#endif
#ifdef USE_AW_MALLOC
V aw_malloc_init(),*aw_malloc(size_t n),*aw_calloc(size_t n,size_t sz),*aw_realloc(V*p,size_t n),aw_free(V*p);//! posix wrappers for benchmarking
#endif
//:~