Lines Matching refs:rhs_real
180 mp_float_t rhs_real, rhs_imag; in mp_obj_complex_binary_op() local
181 if (!mp_obj_get_complex_maybe(rhs_in, &rhs_real, &rhs_imag)) { in mp_obj_complex_binary_op()
188 lhs_real += rhs_real; in mp_obj_complex_binary_op()
193 lhs_real -= rhs_real; in mp_obj_complex_binary_op()
200 real = lhs_real * rhs_real - lhs_imag * rhs_imag; in mp_obj_complex_binary_op()
201 lhs_imag = lhs_real * rhs_imag + lhs_imag * rhs_real; in mp_obj_complex_binary_op()
212 if (rhs_real == 0) { in mp_obj_complex_binary_op()
215 lhs_real /= rhs_real; in mp_obj_complex_binary_op()
216 lhs_imag /= rhs_real; in mp_obj_complex_binary_op()
217 } else if (rhs_real == 0) { in mp_obj_complex_binary_op()
222 mp_float_t rhs_len_sq = rhs_real * rhs_real + rhs_imag * rhs_imag; in mp_obj_complex_binary_op()
223 rhs_real /= rhs_len_sq; in mp_obj_complex_binary_op()
238 if (rhs_imag == 0 && rhs_real >= 0) { in mp_obj_complex_binary_op()
239 lhs_real = (rhs_real == 0); in mp_obj_complex_binary_op()
246 mp_float_t x3 = rhs_real * ln1 - rhs_imag * arg1; in mp_obj_complex_binary_op()
247 mp_float_t y3 = rhs_imag * ln1 + rhs_real * arg1; in mp_obj_complex_binary_op()
256 return mp_obj_new_bool(lhs_real == rhs_real && lhs_imag == rhs_imag); in mp_obj_complex_binary_op()