From ea5e81bd6a3376232bf4747b2fa2e0a91c19b337 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 18 Apr 2009 14:28:45 +0200 Subject: new subdirs: include, lib, tests --- tests/boundtest.c | 214 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 tests/boundtest.c (limited to 'tests/boundtest.c') diff --git a/tests/boundtest.c b/tests/boundtest.c new file mode 100644 index 0000000..9bc9828 --- /dev/null +++ b/tests/boundtest.c @@ -0,0 +1,214 @@ +#include +#include + +#define NB_ITS 1000000 +//#define NB_ITS 1 +#define TAB_SIZE 100 + +int tab[TAB_SIZE]; +int ret_sum; +char tab3[256]; + +int test1(void) +{ + int i, sum = 0; + for(i=0;i= 2) + index = atoi(argv[1]); + /* well, we also use bounds on this ! */ + ftest = table_test[index]; + ftest(); + + return 0; +} + +/* + * without bound 0.77 s + * with bounds 4.73 + */ -- cgit v1.3.1