Lines Matching refs:max_value
43 const unsigned max_value = (1 << bits) - 1;
46 for (int i = 0; i < 2*max_value; i++) {
50 ASSERT_EQ(counter, max_value);
88 const unsigned max_value = (1 << bits) - 1;
92 for (double value = 0.0; value <= max_value; value++, counter++) {
93 const double saturation = value / max_value;
105 const unsigned max_value = (1 << bits) - 1;
112 ASSERT_EQ(diff, max_value - 1);
146 const unsigned max_value = (1 << bits) - 1;
165 ASSERT_EQ(counter, max_value);
178 value = max_value;
179 ASSERT_EQ(counter, max_value);
195 const unsigned max_value = (1 << bits) - 1;
199 for (int i = 0; i < 2*max_value; i++) {
205 ASSERT_EQ(counter_pre, max_value);
206 ASSERT_EQ(counter_post, max_value);
208 for (int i = 0; i < 2*max_value; i++) {
224 const unsigned max_value = (1 << bits) - 1;
243 for (int i = 0; i < 2*max_value; i++) {
249 ASSERT_EQ(counter_copy_constructor, max_value);
250 ASSERT_EQ(counter_copy, max_value);
251 ASSERT_EQ(deep_copy, max_value);
278 const unsigned max_value = (1 << bits) - 1;
281 SatCounter saturated_counter(bits, max_value);
291 counter += max_value;
292 value = max_value;
302 counter -= max_value;
311 value = max_value;