Lines Matching refs:lhs_val

168     mp_float_t lhs_val = mp_obj_float_get(lhs_in);  in float_binary_op()  local
171 return mp_obj_complex_binary_op(op, lhs_val, 0, rhs_in); in float_binary_op()
174 return mp_obj_float_binary_op(op, lhs_val, rhs_in); in float_binary_op()
239 mp_obj_t mp_obj_float_binary_op(mp_binary_op_t op, mp_float_t lhs_val, mp_obj_t rhs_in) { in mp_obj_float_binary_op() argument
248 lhs_val += rhs_val; in mp_obj_float_binary_op()
252 lhs_val -= rhs_val; in mp_obj_float_binary_op()
256 lhs_val *= rhs_val; in mp_obj_float_binary_op()
267 mp_obj_float_divmod(&lhs_val, &rhs_val); in mp_obj_float_binary_op()
274 lhs_val /= rhs_val; in mp_obj_float_binary_op()
281 lhs_val = MICROPY_FLOAT_C_FUN(fmod)(lhs_val, rhs_val); in mp_obj_float_binary_op()
283 if (lhs_val == MICROPY_FLOAT_ZERO) { in mp_obj_float_binary_op()
284 lhs_val = MICROPY_FLOAT_C_FUN(copysign)(0.0, rhs_val); in mp_obj_float_binary_op()
286 if ((lhs_val < MICROPY_FLOAT_ZERO) != (rhs_val < MICROPY_FLOAT_ZERO)) { in mp_obj_float_binary_op()
287 lhs_val += rhs_val; in mp_obj_float_binary_op()
293 if (lhs_val == 0 && rhs_val < 0 && !isinf(rhs_val)) { in mp_obj_float_binary_op()
296 if (lhs_val < 0 && rhs_val != MICROPY_FLOAT_C_FUN(floor)(rhs_val) && !isnan(rhs_val)) { in mp_obj_float_binary_op()
298 return mp_obj_complex_binary_op(MP_BINARY_OP_POWER, lhs_val, 0, rhs_in); in mp_obj_float_binary_op()
304 if (lhs_val == MICROPY_FLOAT_CONST(1.0) || rhs_val == MICROPY_FLOAT_CONST(0.0)) { in mp_obj_float_binary_op()
305 lhs_val = MICROPY_FLOAT_CONST(1.0); in mp_obj_float_binary_op()
309 lhs_val = MICROPY_FLOAT_C_FUN(pow)(lhs_val, rhs_val); in mp_obj_float_binary_op()
315 mp_obj_float_divmod(&lhs_val, &rhs_val); in mp_obj_float_binary_op()
317 mp_obj_new_float(lhs_val), in mp_obj_float_binary_op()
323 return mp_obj_new_bool(lhs_val < rhs_val); in mp_obj_float_binary_op()
325 return mp_obj_new_bool(lhs_val > rhs_val); in mp_obj_float_binary_op()
327 return mp_obj_new_bool(lhs_val == rhs_val); in mp_obj_float_binary_op()
329 return mp_obj_new_bool(lhs_val <= rhs_val); in mp_obj_float_binary_op()
331 return mp_obj_new_bool(lhs_val >= rhs_val); in mp_obj_float_binary_op()
336 return mp_obj_new_float(lhs_val); in mp_obj_float_binary_op()