Searched refs:MICROPY_FLOAT_CONST (Results 1 – 9 of 9) sorted by relevance
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | formatfloat.c | 103 MICROPY_FLOAT_CONST(1e256), MICROPY_FLOAT_CONST(1e128), MICROPY_FLOAT_CONST(1e64), 105 …MICROPY_FLOAT_CONST(1e32), MICROPY_FLOAT_CONST(1e16), MICROPY_FLOAT_CONST(1e8), MICROPY_FLOAT_CONS… 109 MICROPY_FLOAT_CONST(1e-256), MICROPY_FLOAT_CONST(1e-128), MICROPY_FLOAT_CONST(1e-64), 111 …MICROPY_FLOAT_CONST(1e-32), MICROPY_FLOAT_CONST(1e-16), MICROPY_FLOAT_CONST(1e-8), MICROPY_FLOAT_C…
|
A D | objfloat.c | 60 #define MICROPY_FLOAT_ZERO MICROPY_FLOAT_CONST(0.0) 218 div -= MICROPY_FLOAT_CONST(1.0); in mp_obj_float_divmod() 229 if (div - floordiv > MICROPY_FLOAT_CONST(0.5)) { in mp_obj_float_divmod() 230 floordiv += MICROPY_FLOAT_CONST(1.0); in mp_obj_float_divmod() 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()
|
A D | modcmath.c | 75 …return mp_obj_new_complex(MICROPY_FLOAT_CONST(0.5) * MICROPY_FLOAT_C_FUN(log)(real * real + imag *… in mp_cmath_log() 84 …return mp_obj_new_complex(MICROPY_FLOAT_CONST(0.5) * MICROPY_FLOAT_C_FUN(log10)(real * real + imag… in mp_cmath_log10() 93 …mp_float_t sqrt_abs = MICROPY_FLOAT_C_FUN(pow)(real * real + imag * imag, MICROPY_FLOAT_CONST(0.25… in mp_cmath_sqrt() 94 mp_float_t theta = MICROPY_FLOAT_CONST(0.5) * MICROPY_FLOAT_C_FUN(atan2)(imag, real); in mp_cmath_sqrt()
|
A D | modmath.c | 36 #define MP_PI MICROPY_FLOAT_CONST(3.14159265358979323846) 37 #define MP_PI_4 MICROPY_FLOAT_CONST(0.78539816339744830962) 38 #define MP_3_PI_4 MICROPY_FLOAT_CONST(2.35619449019234492885) 94 return MICROPY_FLOAT_C_FUN(log)(x) * MICROPY_FLOAT_CONST(1.442695040888963407354163704); in MICROPY_FLOAT_C_FUN() 105 if (x == MICROPY_FLOAT_CONST(1.0) || y == MICROPY_FLOAT_CONST(0.0)) { in MATH_FUN_1() 106 return MICROPY_FLOAT_CONST(1.0); in MATH_FUN_1() 281 if (fractional_part == MICROPY_FLOAT_CONST(0.0)) { 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 D | mpconfig.h | 716 #define MICROPY_FLOAT_CONST(x) x##F macro 721 #define MICROPY_FLOAT_CONST(x) x macro
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | modsocket.c | 469 _socket_settimeout(self, (uint64_t)(mp_obj_get_float(arg1) * MICROPY_FLOAT_CONST(1000.0))); in socket_settimeout()
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | modsocket.c | 492 MICROPY_FLOAT_CONST(1000.0))); in socket_settimeout()
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | modsocket.c | 453 _socket_settimeout(self, (uint64_t)(mp_obj_get_float(arg1) * MICROPY_FLOAT_CONST(1000.0))); in socket_settimeout()
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | modlwip.c | 1322 timeout = (mp_uint_t)(MICROPY_FLOAT_CONST(1000.0) * mp_obj_get_float(timeout_in)); in lwip_socket_settimeout()
|
Completed in 19 milliseconds