• Home
  • Raw
  • Download

Lines Matching refs:rb

6 	uint32_t sa, sb, ra, rb;  in test_prng_lg_range_u32()  local
12 rb = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32()
13 assert_u32_eq(ra, rb, in test_prng_lg_range_u32()
17 rb = prng_lg_range_u32(&sb, 32, atomic); in test_prng_lg_range_u32()
18 assert_u32_eq(ra, rb, in test_prng_lg_range_u32()
23 rb = prng_lg_range_u32(&sa, 32, atomic); in test_prng_lg_range_u32()
24 assert_u32_ne(ra, rb, 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()
34 assert_u32_eq(rb, (ra >> (32 - lg_range)), in test_prng_lg_range_u32()
43 uint64_t sa, sb, ra, rb; in test_prng_lg_range_u64() local
49 rb = prng_lg_range_u64(&sa, 64); in test_prng_lg_range_u64()
50 assert_u64_eq(ra, rb, in test_prng_lg_range_u64()
54 rb = prng_lg_range_u64(&sb, 64); in test_prng_lg_range_u64()
55 assert_u64_eq(ra, rb, in test_prng_lg_range_u64()
60 rb = prng_lg_range_u64(&sa, 64); in test_prng_lg_range_u64()
61 assert_u64_ne(ra, rb, 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()
71 assert_u64_eq(rb, (ra >> (64 - lg_range)), in test_prng_lg_range_u64()
80 size_t sa, sb, ra, rb; in test_prng_lg_range_zu() local
86 rb = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
87 assert_zu_eq(ra, rb, in test_prng_lg_range_zu()
91 rb = prng_lg_range_zu(&sb, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
92 assert_zu_eq(ra, rb, in test_prng_lg_range_zu()
97 rb = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
98 assert_zu_ne(ra, rb, 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()
109 assert_zu_eq(rb, (ra >> ((ZU(1) << (3 + LG_SIZEOF_PTR)) - in test_prng_lg_range_zu()