65 Commits (999cedb90ff0827cdb9dfe0e4faa6ebc1739d271)

Author SHA1 Message Date
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George 183edefddd py: Add object repr "C", where 30-bit floats are stuffed in obj word. 9 years ago
Damien George aedb859177 py: Make float representation configurable with object representation. 9 years ago
Damien George 7e359c648b py: Move float e/pi consts to objfloat and make mp_obj_float_t private. 9 years ago
Damien George aaef1851a7 py: Add mp_obj_is_float function (macro) and use it where appropriate. 9 years ago
Paul Sokolovsky 1b586f3a73 py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. 9 years ago
Damien George c5029bcbf3 py: Add MP_BINARY_OP_DIVMOD to simplify and consolidate divmod builtin. 10 years ago
stijn 861670ba2a py: Implement mp_format_float for doubles and use where appropriate 10 years ago
Damien George 956d765786 py: Fix printing of "inf" and "nan" floating point values. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George 1ef26b35c1 py, extmod: Remove include of unnecessary system headers. 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 8594ce2280 py: Implement divmod, % and proper // for floating point. 10 years ago
Damien George 20beff9ae3 py and libm: Add asinf,acosf; print higher precision for float. 10 years ago
Damien George d182b98a37 py: Change all uint to mp_uint_t in obj.h. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Paul Sokolovsky 3b6f7b95eb py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. 11 years ago
Damien George ee7a880d6e py: Use mp_arg_check_num in more places. 11 years ago
Damien George d0a5bf34f7 py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Paul Sokolovsky 7de5377ca7 objfloat: Try to achieve the same float printing format as CPython does. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George 9dcc60d0b1 py: Detect ZeroDivisionError properly for floats. 11 years ago
Damien George b8a053aeb1 py: Implement float and complex == and !=. 11 years ago
Damien George ae491055fa py: Fix float/complex binop returning NULL; implement complex power. 11 years ago
Damien George 60be1cf3b9 py: Fix float printing on stmhal. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Damien George b23fbb3126 py: Implement floating point power binop. 11 years ago
Paul Sokolovsky 96ed213320 objfloat: Quick&dirty implementation of float floor division. 11 years ago
Paul Sokolovsky 864038dab7 objfloat: Make sure that floats always have dot (for C "double" type case). 11 years ago
Paul Sokolovsky a8e60c1fde objfloat: Missing default: caused incorrect results for unimplemented ops. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Damien George 6e48f7fa85 py: Allow 'complex()' to take a string as first argument. 11 years ago
Damien George c06ea7abf2 py: Implement parsing of infinity and nan for floats. 11 years ago
Rachel Dowdall 300c8bd4c2 Added ZeroDivisionError to float division. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 9d68e9ccdd py: Implement integer overflow checking for * and << ops. 11 years ago
Damien George 8bfec2b538 Rename formatfloat file; remove MICROPY_ENABLE_FLOAT from mpconfigport.h. 11 years ago
Dave Hylands ca5a241e48 Add proper floating point printing support. 11 years ago
Damien George 0c36da0b59 Implement ROMable modules. Add math module. 11 years ago
Damien George 2077397118 py: Put number parsing code together in parsenum.c. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Damien George 099a9cb575 Remove mp_obj_new_exception_msg_1_arg and _2_arg. 11 years ago
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 11 years ago