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();
21 
22  return 0;
23 }
void egsl_pop()
Definition: egsl.c:89
Definition: egsl.h:12
int main()
#define add_to(v1, v2)
Definition: egsl_macros.h:25
void egsl_push()
Definition: egsl.c:88
void egsl_print_stats()
Definition: egsl.c:147
#define zeros(rows, cols)
Definition: egsl_macros.h:19


csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23