comparison test/callback_suite_aggrs/globals.c @ 561:d60f741e5eae

- test code comments
author Tassilo Philipp
date Sat, 03 Sep 2022 17:34:23 +0200
parents a6d00ee46731
children f29db2bf3c0e
comparison
equal deleted inserted replaced
560:fd7426080105 561:d60f741e5eae
29 29
30 #define X(CH,T) T *V_##CH; T *K_##CH; 30 #define X(CH,T) T *V_##CH; T *K_##CH;
31 DEF_TYPES 31 DEF_TYPES
32 #undef X 32 #undef X
33 33
34 #define AGGR_MISALIGN 1 34 /* intentional misalignment of test aggregates (use only positive numbers);
35 * crashes/exceptions (e.g. sigbus on some platforms) when using values > 0
36 * might reveal missing aggr-by-val copies in the implementation */
37 #define AGGR_MISALIGN 1 /* @@@AGGR make configurable */
35 38
36 static double rand_d() { return ( ( (double) rand() ) / ( (double) RAND_MAX ) ); } 39 static double rand_d() { return ( ( (double) rand() ) / ( (double) RAND_MAX ) ); }
37 40
38 /* fill mem with random values, make sure no float aligned memory location 41 /* fill mem with random values, make sure no float aligned memory location
39 * results in a NaN, as they always compare to false; so avaid all ones in 42 * results in a NaN, as they always compare to false; so avaid all ones in