summaryrefslogtreecommitdiffstatshomepage
path: root/py/objint.c
Commit message (Expand)AuthorAge
* py/parsenum: Throw an exception for invalid int literals like "01".Jeff Epler2025-01-26
* py/objint: Make byteorder argument optional in int.from_bytes() method.Amirreza Hamzavi2024-09-02
* py/objint: Make length argument optional in int.to_bytes() method.Amirreza Hamzavi2024-09-02
* py/objint: Make byteorder argument optional in int.to_bytes() method.Amirreza Hamzavi2024-09-02
* py/objint: Fix int.to_bytes() buffer size checks.Angus Gratton2024-06-24
* all: Remove the "STATIC" macro and just use "static" instead.Angus Gratton2024-03-07
* py/objint: Allow int() to parse anything with the buffer protocol.Damien George2023-06-01
* py: Change MP_UNARY_OP_INT to MP_UNARY_OP_INT_MAYBE.Damien George2023-06-01
* py/obj: Convert make_new into a mp_obj_type_t slot.Jim Mussared2022-09-19
* all: Remove unnecessary locals_dict cast.Jim Mussared2022-09-19
* all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE.Jim Mussared2022-09-19
* py/objstr: Split mp_obj_str_from_vstr into bytes/str versions.Jim Mussared2022-08-26
* py/obj: Add static safety checks to mp_obj_is_type().Yonatan Goldschmidt2022-07-18
* all: Fix signed shifts and NULL access errors from -fsanitize=undefined.Jeff Epler2021-06-24
* py: Rename BITS_PER_BYTE to MP_BITS_PER_BYTE.Damien George2021-02-04
* py/objint: Do not use fpclassify.stijn2020-04-18
* all: Use MP_ERROR_TEXT for all error messages.Jim Mussared2020-04-05
* all: Reformat C and Python source code with tools/codeformat.py.Damien George2020-02-28
* all: Convert nlr_raise(mp_obj_new_exception_msg(x)) to mp_raise_msg(x).Damien George2019-11-05
* py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API.Damien George2019-02-12
* py/obj: Add support for __int__ special method.Paul Sokolovsky2018-12-07
* py/objint: Remove TODO about checking of int() arg types with 2 args.Damien George2018-09-27
* py/objint: Remove unreachable code checking for int type in format func.Damien George2018-03-02
* py/objint: Use MP_OBJ_IS_STR_OR_BYTES macro instead of 2 separate ones.Damien George2018-02-21
* all: Remove inclusion of internal py header files.Damien George2017-10-04
* py/modbuiltins: Implement abs() by dispatching to MP_UNARY_OP_ABS.Paul Sokolovsky2017-09-18
* all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriateDamien George2017-08-29
* all: Use the name MicroPython consistently in commentsAlexander Steffen2017-07-31
* py,extmod: Some casts and minor refactors to quiet compiler warnings.Tom Collins2017-07-07
* py/objint: In to_bytes(), allow length arg to be any int and check sign.Damien George2017-06-15
* py/objint: Support "big" byte-order in int.to_bytes().Damien George2017-06-15
* py/objint: In int.from_bytes, only create big-int if really needed.Damien George2017-05-06
* py/objint: Use unsigned arithmetic when formatting an integer.Damien George2017-04-11
* py/objint: Extract small int value directly because type is known.Damien George2017-04-11
* py/objint: Consolidate mp_obj_new_int_from_float to one implementation.Damien George2017-04-04
* py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.Damien George2017-03-29
* py/objint: Handle special case of -0 when classifying fp as int.Damien George2017-03-23
* py/objint: Allow to print long-long ints without using the heap.Damien George2017-03-14
* py/objint: Convert mp_uint_t to size_t where appropriate.Damien George2017-02-16
* py/objint: Fix left-shift overflow in checking for large int.Damien George2017-01-25
* py/objint: from_bytes(): Implement "byteorder" param and arbitrary precision.Paul Sokolovsky2017-01-21
* py/objint: Simplify mp_int_format_size and remove unreachable code.Damien George2016-12-28
* py/objint: Rename mp_obj_int_as_float to mp_obj_int_as_float_impl.Damien George2016-12-21
* py/objint: from_bytes, to_bytes: Require byteorder arg, require "little".Paul Sokolovsky2016-12-09
* py: Use mp_raise_msg helper function where appropriate.Damien George2016-10-17
* py/objint: Use size_t for arguments that measure bytes/sizes.Damien George2016-10-11
* py: Factor duplicated function to calculate size of formatted int.Damien George2016-10-11
* py: Use MP_SMALL_INT_POSITIVE_MASK to check if uint fits in a small int.Damien George2016-03-10
* py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.Damien George2016-01-11
* py: Change type signature of builtin funs that take variable or kw args.Damien George2016-01-11