Mercurial > pub > dyncall > dyncall
comparison test/suite_aggrs/globals.c @ 450:a3b2afc35730
- suite_aggrs: int scope change for older compilers
author | Tassilo Philipp |
---|---|
date | Thu, 27 Jan 2022 11:46:17 +0100 |
parents | 4bd3ed699de8 |
children | 90b1d927912a |
comparison
equal
deleted
inserted
replaced
449:68f7d6ed3e6f | 450:a3b2afc35730 |
---|---|
31 #undef X | 31 #undef X |
32 | 32 |
33 #define AGGR_MISALIGN 0 | 33 #define AGGR_MISALIGN 0 |
34 | 34 |
35 static double rand_d() { return ( ( (double) rand() ) / ( (double) RAND_MAX ) ); } | 35 static double rand_d() { return ( ( (double) rand() ) / ( (double) RAND_MAX ) ); } |
36 static void rand_mem(void* p, size_t s) { for(int i=0; i<s; ++i) ((char*)p)[i] = (char)rand(); } /* byte by byte is slow, but whatev */ | 36 static void rand_mem(void* p, size_t s) { int i; for(i=0; i<s; ++i) ((char*)p)[i] = (char)rand(); } /* byte by byte is slow, but whatev */ |
37 | 37 |
38 static int calc_max_aggr_size() | 38 static int calc_max_aggr_size() |
39 { | 39 { |
40 int i, s = 0; | 40 int i, s = 0; |
41 for(i=0; i<G_naggs; ++i) | 41 for(i=0; i<G_naggs; ++i) |