Lines Matching refs:Freq

21   BlockFrequency Freq(1);  in TEST()  local
23 Freq *= Prob; in TEST()
24 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
26 Freq = BlockFrequency(1); in TEST()
27 Freq *= Prob; in TEST()
28 EXPECT_EQ(Freq.getFrequency(), 0u); in TEST()
32 BlockFrequency Freq(1); in TEST() local
34 Freq *= Prob; in TEST()
35 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
37 Freq = BlockFrequency(1); in TEST()
38 Freq *= Prob; in TEST()
39 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
43 BlockFrequency Freq(3); in TEST() local
45 Freq *= Prob; in TEST()
46 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
48 Freq = BlockFrequency(3); in TEST()
49 Freq *= Prob; in TEST()
50 EXPECT_EQ(Freq.getFrequency(), 1u); in TEST()
54 BlockFrequency Freq(UINT64_MAX); in TEST() local
56 Freq *= Prob; in TEST()
57 EXPECT_EQ(Freq.getFrequency(), 9223372036854775807ULL); in TEST()
59 Freq = BlockFrequency(UINT64_MAX); in TEST()
60 Freq *= Prob; in TEST()
61 EXPECT_EQ(Freq.getFrequency(), 9223372036854775807ULL); in TEST()
67 BlockFrequency Freq(Big); in TEST() local
69 Freq *= Prob; in TEST()
70 EXPECT_EQ(Freq.getFrequency(), Big); in TEST()
72 Freq = BlockFrequency(Big); in TEST()
73 Freq *= Prob; in TEST()
74 EXPECT_EQ(Freq.getFrequency(), Big); in TEST()
78 BlockFrequency Freq(UINT64_MAX); in TEST() local
80 Freq *= Prob; in TEST()
81 EXPECT_EQ(Freq.getFrequency(), UINT64_MAX); in TEST()
86 Freq = BlockFrequency(UINT64_MAX); in TEST()
87 Freq *= Prob; in TEST()
88 EXPECT_EQ(Freq.getFrequency(), UINT64_MAX); in TEST()
98 BlockFrequency Freq(0x3333333333333333ULL); in TEST() local
99 Freq /= BranchProbability(1, 2); in TEST()
100 EXPECT_EQ(Freq.getFrequency(), 0x6666666666666666ULL); in TEST()
104 BlockFrequency Freq(0x3333333333333333ULL); in TEST() local
105 Freq /= BranchProbability(100, 300); in TEST()
106 EXPECT_EQ(Freq.getFrequency(), 0x9999999866666668ULL); in TEST()
107 Freq /= BranchProbability(1, 2); in TEST()
108 EXPECT_EQ(Freq.getFrequency(), UINT64_MAX); in TEST()
110 Freq = 0x1000000000000000ULL; in TEST()
111 Freq /= BranchProbability(10000, 170000); in TEST()
112 EXPECT_EQ(Freq.getFrequency(), UINT64_MAX); in TEST()
115 Freq = 0x00000001f0000001ull; in TEST()
116 Freq /= BranchProbability(1000, 0xf000000f); in TEST()
117 EXPECT_EQ(33527736066704712ULL, Freq.getFrequency()); in TEST()
121 BlockFrequency Freq(0x10080ULL); in TEST() local
122 Freq >>= 2; in TEST()
123 EXPECT_EQ(Freq.getFrequency(), 0x4020ULL); in TEST()
124 Freq >>= 20; in TEST()
125 EXPECT_EQ(Freq.getFrequency(), 0x1ULL); in TEST()