105 Commits (7d8b2d89cc6b3734b6ecef36c49354fbf1406687)

Author SHA1 Message Date
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Jim Mussared 94beeabd2e py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
Jim Mussared 662b9761b3 all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE. 3 years ago
Damien George 627ba38154 py/parsenum: Optimise when building with complex disabled. 2 years ago
Jim Mussared 6a3bc0e1a1 py/objfloat: Explain why mp_obj_malloc isn't used. 3 years ago
stijn dd6967202a py/modmath: Add math.tau, math.nan and math.inf constants. 5 years ago
Damien George 7e956fae28 py: Rename BITS_PER_BYTE to MP_BITS_PER_BYTE. 4 years ago
stijn 2e54d9d146 py: Fix handling of NaN in certain pow implementations. 4 years ago
Damien George 8d5a40c86e py/objfloat: Fix handling of negative float to power of nan. 4 years ago
stijn 0ba68f8a1d all: Fix implicit floating point promotion. 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George a1b18b3ba7 py: Removing dangling "else" to improve code format consistency. 5 years ago
Damien George ce39c958ef py: Factor out definition of mp_float_union_t to one location. 5 years ago
Damien George 9ec1caf42e py: Expand type equality flags to 3 separate ones, fix bool/namedtuple. 5 years ago
Nicko van Someren 3aab54bf43 py: Support non-boolean results for equality and inequality tests. 5 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Damien George b3eadf3f3d py/objfloat: Fix abs(-0.0) so it returns 0.0. 6 years ago
Damien George b01f66c5f1 py: Shorten error messages by using contractions and some rewording. 6 years ago
Jeff Epler 95e43efc99 py/objfloat: Fix undefined integer behavior hashing negative zero. 7 years ago
Jeff Epler 60eb5305f6 py/objfloat: Fix undefined shifting behavior in high-quality float hash. 7 years ago
Damien George bbb08431f3 py/objfloat: Fix case of raising 0 to -infinity. 7 years ago
Damien George a07fc5b640 py/objfloat: Allow float() to parse anything with the buffer protocol. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Damien George bdc6e86e07 py/objfloat: Support raising a negative number to a fractional power. 7 years ago
Damien George fdb2aa81b7 py/{objfloat,objcomplex}: Optimise MP_UNARY_OP_ABS by reusing variables. 7 years ago
Paul Sokolovsky 9dce823cfd py/modbuiltins: Implement abs() by dispatching to MP_UNARY_OP_ABS. 7 years ago
Paul Sokolovsky 9950865c39 py/objfloat: Fix binary ops with incompatible objects. 7 years ago
Damien George 58321dd985 all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 7a72c0db5a py: Reduce str/repr precision of float numbers when floats are 30-bit. 8 years ago
Damien George a73501b1d6 py/objfloat: Add implementation of high-quality float hashing. 8 years ago
Damien George 19f2e47d59 py: Add very simple but correct hashing for float and complex numbers. 8 years ago
Damien George 6b34107537 py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg. 8 years ago
Damien George 4b8ec5256d py/objfloat: Raise ZeroDivisionError for 0 to negative power. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Colin Hogben a896951a9a py/objfloat, py/modmath: Ensure M_PI and M_E defined. 9 years ago
Damien George 5b3f0b7f39 py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 9 years ago
Damien George b8cfb0d7b2 py: Add support for 64-bit NaN-boxing object model, on 32-bit machine. 9 years ago
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