Main Page
Modules
Namespaces
Classes
Files
File List
File Members
sm
lib
egsl
egsl_test_allocation.c
Go to the documentation of this file.
1
#include "
egsl.h
"
2
#include "
egsl_macros.h
"
3
4
int
main
() {
5
egsl_push
();
6
7
val
v1 =
zeros
(10,10);
8
9
int
i;
10
for
(i=0;i<1000000;i++) {
11
egsl_push
();
12
val
v2 =
zeros
(10,10);
13
14
add_to
(v1, v2);
15
16
egsl_pop
();
17
}
18
19
egsl_pop
();
20
egsl_print_stats
();
21
22
return
0;
23
}
egsl_pop
void egsl_pop()
Definition:
egsl.c:89
egsl_val
Definition:
egsl.h:12
egsl.h
main
int main()
Definition:
egsl_test_allocation.c:4
add_to
#define add_to(v1, v2)
Definition:
egsl_macros.h:25
egsl_push
void egsl_push()
Definition:
egsl.c:88
egsl_print_stats
void egsl_print_stats()
Definition:
egsl.c:147
egsl_macros.h
zeros
#define zeros(rows, cols)
Definition:
egsl_macros.h:19
csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23