Lines Matching refs:pi
75 volatile FP_TYPE pi; /* volatile to avoid optimizing out of loop */ in calculate_pi_low() local
84 pi = FP_CONSTANT(1.0); in calculate_pi_low()
88 pi += sign / divisor; in calculate_pi_low()
93 pi *= FP_CONSTANT(4.0); in calculate_pi_low()
96 reference_pi = pi; in calculate_pi_low()
97 } else if (reference_pi != pi) { in calculate_pi_low()
99 (double)pi, (double)reference_pi); in calculate_pi_low()
102 zassert_equal(reference_pi, pi, in calculate_pi_low()
114 volatile FP_TYPE pi; /* volatile to avoid optimizing out of loop */ in calculate_pi_high() local
125 pi = FP_CONSTANT(1.0); in calculate_pi_high()
129 pi += sign / divisor; in calculate_pi_high()
146 pi *= FP_CONSTANT(4.0); in calculate_pi_high()
149 reference_pi = pi; in calculate_pi_high()
150 } else if (reference_pi != pi) { in calculate_pi_high()
152 (double)pi, (double)reference_pi); in calculate_pi_high()
155 zassert_equal(reference_pi, pi, in calculate_pi_high()
162 calc_pi_high_count, calc_pi_low_count, (double)pi); in calculate_pi_high()