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