Home
last modified time | relevance | path

Searched refs:mp_obj_new_float (Results 1 – 11 of 11) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dobjfloat.c125 return mp_obj_new_float(0); in float_make_new()
138 return mp_obj_new_float(mp_obj_get_float(args[0])); in float_make_new()
154 return mp_obj_new_float(-val); in float_unary_op()
157 return mp_obj_new_float(-val); in float_unary_op()
189 mp_obj_t mp_obj_new_float(mp_float_t value) { in mp_obj_new_float() function
317 mp_obj_new_float(lhs_val), in mp_obj_float_binary_op()
318 mp_obj_new_float(rhs_val), in mp_obj_float_binary_op()
336 return mp_obj_new_float(lhs_val); in mp_obj_float_binary_op()
A Dmodmath.c50 return mp_obj_new_float(ans); in math_generic_1()
60 return mp_obj_new_float(ans); in math_generic_2()
85 …return mp_obj_new_float(MICROPY_FLOAT_C_FUN(c_name)(mp_obj_get_float(x_obj), mp_obj_get_int(y_obj)…
249 return mp_obj_new_float(l); in mp_math_log()
257 return mp_obj_new_float(l / MICROPY_FLOAT_C_FUN(log)(base)); in mp_math_log()
269 tuple[0] = mp_obj_new_float(significand); in mp_math_frexp()
286 tuple[0] = mp_obj_new_float(fractional_part); in mp_math_modf()
287 tuple[1] = mp_obj_new_float(int_part); in mp_math_modf()
296 return mp_obj_new_float(mp_obj_get_float(x_obj) * (MP_PI / MICROPY_FLOAT_CONST(180.0))); in mp_math_radians()
302 return mp_obj_new_float(mp_obj_get_float(x_obj) * (MICROPY_FLOAT_CONST(180.0) / MP_PI)); in mp_math_degrees()
A Dmodcmath.c37 return mp_obj_new_float(MICROPY_FLOAT_C_FUN(atan2)(imag, real)); in mp_cmath_phase()
46 mp_obj_new_float(MICROPY_FLOAT_C_FUN(sqrt)(real * real + imag * imag)), in mp_cmath_polar()
47 mp_obj_new_float(MICROPY_FLOAT_C_FUN(atan2)(imag, real)), in mp_cmath_polar()
A Dobjcomplex.c129 … return mp_obj_new_float(MICROPY_FLOAT_C_FUN(sqrt)(o->real * o->real + o->imag * o->imag)); in complex_unary_op()
147 dest[0] = mp_obj_new_float(self->real); in complex_attr()
149 dest[0] = mp_obj_new_float(self->imag); in complex_attr()
A Dobj.h112 mp_obj_t mp_obj_new_float(mp_float_t value);
147 mp_obj_t mp_obj_new_float(mp_float_t value);
176 static inline mp_obj_t mp_obj_new_float(mp_float_t f) { in mp_obj_new_float() function
240 static inline mp_obj_t mp_obj_new_float(mp_float_t f) { in mp_obj_new_float() function
855 return mp_obj_new_float(o); in mp_obj_new_float_from_f()
859 return mp_obj_new_float((mp_float_t)o); in mp_obj_new_float_from_d()
871 return mp_obj_new_float((mp_float_t)o); in mp_obj_new_float_from_f()
875 return mp_obj_new_float(o); in mp_obj_new_float_from_d()
A Ddynruntime.h250 #define mp_obj_new_float(f) (mp_obj_new_float_from_f((f))) macro
253 #define mp_obj_new_float(f) (mp_obj_new_float_from_d((f))) macro
A Dparsenum.c351 return mp_obj_new_float(dec_val); in mp_parse_num_decimal()
A Dobjint_mpz.c215 return mp_obj_new_float(flhs / frhs); in mp_obj_int_binary_op()
A Dmodbuiltins.c515 return mp_obj_new_float(rounded); in mp_builtin_round()
A Druntime.c469 return mp_obj_new_float((mp_float_t)lhs_val / (mp_float_t)rhs_val); in mp_binary_op()
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmodurandom.c203 return mp_obj_new_float(yasmarang_float()); in mod_urandom_random()
210 return mp_obj_new_float(a + (b - a) * yasmarang_float()); in mod_urandom_uniform()

Completed in 21 milliseconds