Lines Matching refs:ra
6 uint32_t sa, sb, ra, rb; in test_prng_lg_range_u32() local
10 ra = 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()
18 assert_u32_eq(ra, rb, in test_prng_lg_range_u32()
22 ra = 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()
28 ra = prng_lg_range_u32(&sa, 32, atomic); 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
47 ra = prng_lg_range_u64(&sa, 64); in test_prng_lg_range_u64()
50 assert_u64_eq(ra, rb, in test_prng_lg_range_u64()
55 assert_u64_eq(ra, rb, in test_prng_lg_range_u64()
59 ra = prng_lg_range_u64(&sa, 64); in test_prng_lg_range_u64()
61 assert_u64_ne(ra, rb, in test_prng_lg_range_u64()
65 ra = prng_lg_range_u64(&sa, 64); 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
84 ra = 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()
92 assert_zu_eq(ra, rb, in test_prng_lg_range_zu()
96 ra = 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()
102 ra = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
109 assert_zu_eq(rb, (ra >> ((ZU(1) << (3 + LG_SIZEOF_PTR)) - in test_prng_lg_range_zu()