• Home
  • History
  • Annotate
  • Raw
  • Download

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()
44 unsigned lg_range; in test_prng_lg_range_u64() local
66 for (lg_range = 63; lg_range > 0; lg_range--) { in test_prng_lg_range_u64()
68 rb = prng_lg_range_u64(&sb, lg_range); in test_prng_lg_range_u64()
69 assert_u64_eq((rb & (UINT64_C(0xffffffffffffffff) << lg_range)), in test_prng_lg_range_u64()
70 0, "High order bits should be 0, lg_range=%u", lg_range); in test_prng_lg_range_u64()
71 assert_u64_eq(rb, (ra >> (64 - lg_range)), in test_prng_lg_range_u64()
73 "lg_range=%u", lg_range); in test_prng_lg_range_u64()
81 unsigned lg_range; in test_prng_lg_range_zu() local
103 for (lg_range = (ZU(1) << (3 + LG_SIZEOF_PTR)) - 1; lg_range > 0; in test_prng_lg_range_zu()
104 lg_range--) { in test_prng_lg_range_zu()
106 rb = prng_lg_range_zu(&sb, lg_range, atomic); in test_prng_lg_range_zu()
107 assert_zu_eq((rb & (SIZE_T_MAX << lg_range)), in test_prng_lg_range_zu()
108 0, "High order bits should be 0, lg_range=%u", lg_range); in test_prng_lg_range_zu()
110 lg_range)), "Expected high order bits of full-width " in test_prng_lg_range_zu()
111 "result, lg_range=%u", lg_range); in test_prng_lg_range_zu()