Lines Matching defs:lg_range
7 unsigned lg_range;
29 for (lg_range = 31; lg_range > 0; lg_range--) {
31 rb = prng_lg_range_u32(&sb, lg_range, atomic);
32 assert_u32_eq((rb & (UINT32_C(0xffffffff) << lg_range)),
33 0, "High order bits should be 0, lg_range=%u", lg_range);
34 assert_u32_eq(rb, (ra >> (32 - lg_range)),
36 "lg_range=%u", lg_range);
44 unsigned lg_range;
66 for (lg_range = 63; lg_range > 0; lg_range--) {
68 rb = prng_lg_range_u64(&sb, lg_range);
69 assert_u64_eq((rb & (UINT64_C(0xffffffffffffffff) << lg_range)),
70 0, "High order bits should be 0, lg_range=%u", lg_range);
71 assert_u64_eq(rb, (ra >> (64 - lg_range)),
73 "lg_range=%u", lg_range);
81 unsigned lg_range;
103 for (lg_range = (ZU(1) << (3 + LG_SIZEOF_PTR)) - 1; lg_range > 0;
104 lg_range--) {
106 rb = prng_lg_range_zu(&sb, lg_range, atomic);
107 assert_zu_eq((rb & (SIZE_T_MAX << lg_range)),
108 0, "High order bits should be 0, lg_range=%u", lg_range);
110 lg_range)), "Expected high order bits of full-width "
111 "result, lg_range=%u", lg_range);