Lines Matching refs:lg_range
7 unsigned lg_range; in test_prng_lg_range_u32() local
29 for (lg_range = 31; lg_range > 0; lg_range--) { in test_prng_lg_range_u32()
31 rb = prng_lg_range_u32(&sb, lg_range, atomic); in test_prng_lg_range_u32()
32 assert_u32_eq((rb & (UINT32_C(0xffffffff) << lg_range)), in test_prng_lg_range_u32()
33 0, "High order bits should be 0, lg_range=%u", lg_range); in test_prng_lg_range_u32()
34 assert_u32_eq(rb, (ra >> (32 - lg_range)), in test_prng_lg_range_u32()
36 "lg_range=%u", lg_range); in test_prng_lg_range_u32()
43 unsigned lg_range; in test_prng_lg_range_u64() local
65 for (lg_range = 63; lg_range > 0; lg_range--) { in test_prng_lg_range_u64()
67 rb = prng_lg_range_u64(&sb, lg_range); in test_prng_lg_range_u64()
68 assert_u64_eq((rb & (UINT64_C(0xffffffffffffffff) << lg_range)), in test_prng_lg_range_u64()
69 0, "High order bits should be 0, lg_range=%u", lg_range); in test_prng_lg_range_u64()
70 assert_u64_eq(rb, (ra >> (64 - lg_range)), in test_prng_lg_range_u64()
72 "lg_range=%u", lg_range); in test_prng_lg_range_u64()
80 unsigned lg_range; in test_prng_lg_range_zu() local
102 for (lg_range = (ZU(1) << (3 + LG_SIZEOF_PTR)) - 1; lg_range > 0; in test_prng_lg_range_zu()
103 lg_range--) { in test_prng_lg_range_zu()
105 rb = prng_lg_range_zu(&sb, lg_range, atomic); in test_prng_lg_range_zu()
106 assert_zu_eq((rb & (SIZE_T_MAX << lg_range)), in test_prng_lg_range_zu()
107 0, "High order bits should be 0, lg_range=%u", lg_range); in test_prng_lg_range_zu()
109 lg_range)), "Expected high order bits of full-width " in test_prng_lg_range_zu()
110 "result, lg_range=%u", lg_range); in test_prng_lg_range_zu()