3 #include "arch.h" // page_size
7 unsigned long get_len(void)
13 /* short circuit if 0 */
21 case 1: i
&= page_size
;
25 case 3: i
&= 0xffffff;
27 case 4: i
&= 0xffffffff;
34 /* again, short circuit if 0 */
38 /* we might get lucky if something is counting ints/longs etc. */
39 if (rand() % 100 < 25) {
40 int _div
= 1 << ((rand() % 4) + 1); /* 2,4,8 or 16 */