/AliOS-Things-master/components/py_engine/engine/py/ |
A D | modmath.c | 44 STATIC mp_obj_t math_generic_1(mp_obj_t x_obj, mp_float_t (*f)(mp_float_t)) { in math_generic_1() argument 46 mp_float_t ans = f(x); in math_generic_1() 53 … mp_obj_t math_generic_2(mp_obj_t x_obj, mp_obj_t y_obj, mp_float_t (*f)(mp_float_t, mp_float_t)) { in math_generic_2() argument 56 mp_float_t ans = f(x, y); in math_generic_2() 93 mp_float_t MICROPY_FLOAT_C_FUN(log2)(mp_float_t x) { in MICROPY_FLOAT_C_FUN() 102 mp_float_t pow_func(mp_float_t x, mp_float_t y) { in MATH_FUN_1() 150 mp_float_t atan2_func(mp_float_t x, mp_float_t y) { in MATH_FUN_2() 163 STATIC mp_float_t MICROPY_FLOAT_C_FUN(copysign_func)(mp_float_t x, mp_float_t y) { in MATH_FUN_2() 168 STATIC mp_float_t MICROPY_FLOAT_C_FUN(fabs_func)(mp_float_t x) { in MATH_FUN_2() 176 mp_float_t fmod_func(mp_float_t x, mp_float_t y) { in MATH_FUN_1() [all …]
|
A D | objcomplex.c | 41 mp_float_t real; 42 mp_float_t imag; 97 mp_float_t real, imag; in complex_make_new() 105 mp_float_t real2, imag2; in complex_make_new() 164 mp_obj_t mp_obj_new_complex(mp_float_t real, mp_float_t imag) { in mp_obj_new_complex() 172 void mp_obj_complex_get(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag) { in mp_obj_complex_get() 179 mp_obj_t mp_obj_complex_binary_op(mp_binary_op_t op, mp_float_t lhs_real, mp_float_t lhs_imag, mp_o… in mp_obj_complex_binary_op() 180 mp_float_t rhs_real, rhs_imag; in mp_obj_complex_binary_op() 198 mp_float_t real; in mp_obj_complex_binary_op() 218 mp_float_t real = lhs_imag / rhs_imag; in mp_obj_complex_binary_op() [all …]
|
A D | modcmath.c | 35 mp_float_t real, imag; in mp_cmath_phase() 43 mp_float_t real, imag; in mp_cmath_polar() 55 mp_float_t r = mp_obj_get_float(r_obj); in mp_cmath_rect() 56 mp_float_t phi = mp_obj_get_float(phi_obj); in mp_cmath_rect() 63 mp_float_t real, imag; in mp_cmath_exp() 65 mp_float_t exp_real = MICROPY_FLOAT_C_FUN(exp)(real); in mp_cmath_exp() 73 mp_float_t real, imag; in mp_cmath_log() 82 mp_float_t real, imag; in mp_cmath_log10() 91 mp_float_t real, imag; in mp_cmath_sqrt() 101 mp_float_t real, imag; in mp_cmath_cos() [all …]
|
A D | objfloat.c | 52 mp_float_t value; 64 mp_int_t mp_float_hash(mp_float_t src) { in mp_float_hash() 99 mp_float_t o_val = mp_obj_float_get(o_in); in float_print() 145 mp_float_t val = mp_obj_float_get(o_in); in float_unary_op() 168 mp_float_t lhs_val = mp_obj_float_get(lhs_in); in float_binary_op() 189 mp_obj_t mp_obj_new_float(mp_float_t value) { in mp_obj_new_float() 196 mp_float_t mp_obj_float_get(mp_obj_t self_in) { in mp_obj_float_get() 204 STATIC void mp_obj_float_divmod(mp_float_t *x, mp_float_t *y) { in mp_obj_float_divmod() 210 mp_float_t div = (*x - mod) / *y; in mp_obj_float_divmod() 222 mp_float_t floordiv; in mp_obj_float_divmod() [all …]
|
A D | obj.h | 112 mp_obj_t mp_obj_new_float(mp_float_t value); 147 mp_obj_t mp_obj_new_float(mp_float_t value); 171 mp_float_t f; in mp_obj_float_get() 178 mp_float_t f; in mp_obj_new_float() 235 mp_float_t f; in mp_obj_float_get() 242 mp_float_t f; in mp_obj_new_float() 739 mp_obj_t mp_obj_new_complex(mp_float_t real, mp_float_t imag); 793 void mp_obj_get_complex(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag); 794 bool mp_obj_get_complex_maybe(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag); 879 mp_int_t mp_float_hash(mp_float_t val); [all …]
|
A D | obj.c | 335 bool mp_obj_get_float_maybe(mp_obj_t arg, mp_float_t *value) { in mp_obj_get_float_maybe() 336 mp_float_t val; in mp_obj_get_float_maybe() 343 val = (mp_float_t)MP_OBJ_SMALL_INT_VALUE(arg); in mp_obj_get_float_maybe() 358 mp_float_t mp_obj_get_float(mp_obj_t arg) { in mp_obj_get_float() 359 mp_float_t val; in mp_obj_get_float() 374 bool mp_obj_get_complex_maybe(mp_obj_t arg, mp_float_t *real, mp_float_t *imag) { in mp_obj_get_complex_maybe() 382 *real = (mp_float_t)MP_OBJ_SMALL_INT_VALUE(arg); in mp_obj_get_complex_maybe() 400 void mp_obj_get_complex(mp_obj_t arg, mp_float_t *real, mp_float_t *imag) { in mp_obj_get_complex()
|
A D | formatfloat.h | 32 int mp_format_float(mp_float_t f, char *buf, size_t bufSize, char fmt, int prec, char sign);
|
A D | mpz.h | 113 void mpz_set_from_float(mpz_t *z, mp_float_t src); 149 mp_float_t mpz_as_float(const mpz_t *z);
|
A D | mpprint.h | 74 int mp_print_float(const mp_print_t *print, mp_float_t f, char fmt, int flags, char fill, int width…
|
A D | objint.c | 86 STATIC mp_fp_as_int_class_t mp_classify_fp_as_int(mp_float_t val) { in mp_classify_fp_as_int() 88 mp_float_t f; in mp_classify_fp_as_int() 137 mp_obj_t mp_obj_new_int_from_float(mp_float_t val) { in mp_obj_new_int_from_float()
|
A D | parsenum.c | 197 mp_float_t dec_val = 0; in mp_parse_num_decimal() 223 dec_val = (mp_float_t)INFINITY; in mp_parse_num_decimal()
|
A D | objint.h | 44 mp_float_t mp_obj_int_as_float_impl(mp_obj_t self_in);
|
A D | mpprint.c | 343 int mp_print_float(const mp_print_t *print, mp_float_t f, char fmt, int flags, char fill, int width… in mp_print_float() 546 mp_float_t f = (mp_float_t)va_arg(args, double); in mp_vprintf()
|
A D | objint_mpz.c | 213 mp_float_t flhs = mpz_as_float(zlhs); in mp_obj_int_binary_op() 214 mp_float_t frhs = mpz_as_float(zrhs); in mp_obj_int_binary_op() 450 mp_float_t mp_obj_int_as_float_impl(mp_obj_t self_in) { in mp_obj_int_as_float_impl()
|
A D | modbuiltins.c | 509 mp_float_t val = mp_obj_get_float(o_in); in mp_builtin_round() 512 mp_float_t mult = MICROPY_FLOAT_C_FUN(pow)(10, (mp_float_t)num_dig); in mp_builtin_round() 514 mp_float_t rounded = MICROPY_FLOAT_C_FUN(nearbyint)(val * mult) / mult; in mp_builtin_round() 517 mp_float_t rounded = MICROPY_FLOAT_C_FUN(nearbyint)(val); in mp_builtin_round()
|
A D | mpconfig.h | 718 typedef float mp_float_t; typedef 723 typedef double mp_float_t; typedef
|
A D | runtime.c | 469 return mp_obj_new_float((mp_float_t)lhs_val / (mp_float_t)rhs_val); in mp_binary_op() 485 return mp_obj_float_binary_op(op, (mp_float_t)lhs_val, rhs); in mp_binary_op() 547 mp_obj_t res = mp_obj_float_binary_op(op, (mp_float_t)lhs_val, rhs); in mp_binary_op() 556 mp_obj_t res = mp_obj_complex_binary_op(op, (mp_float_t)lhs_val, 0, rhs); in mp_binary_op()
|
A D | objint_longlong.c | 289 mp_float_t mp_obj_int_as_float_impl(mp_obj_t self_in) { in mp_obj_int_as_float_impl()
|
A D | mpz.c | 657 mpz_t *mpz_from_float(mp_float_t val) { 758 void mpz_set_from_float(mpz_t *z, mp_float_t src) { in mpz_set_from_float() 1632 mp_float_t mpz_as_float(const mpz_t *i) { in mpz_as_float() 1633 mp_float_t val = 0; in mpz_as_float()
|
A D | misc.h | 245 mp_float_t f;
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | _frozen_mpy.c | 13 mp_float_t value; 20 mp_float_t real; 21 mp_float_t imag;
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | _frozen_mpy.c | 13 mp_float_t value; 20 mp_float_t real; 21 mp_float_t imag;
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | _frozen_mpy.c | 13 mp_float_t value; 20 mp_float_t real; 21 mp_float_t imag;
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | modurandom.c | 190 STATIC mp_float_t yasmarang_float(void) { in yasmarang_float() 208 mp_float_t a = mp_obj_get_float(a_in); in mod_urandom_uniform() 209 mp_float_t b = mp_obj_get_float(b_in); in mod_urandom_uniform()
|