-
- Downloads
py/mpz: Complete implementation of mpz_{and,or,xor} for negative args.
For these 3 bitwise operations there are now fast functions for positive-only arguments, and general functions for arbitrary sign arguments (the fast functions are the existing implementation). By default the fast functions are not used (to save space) and instead the general functions are used for all operations. Enable MICROPY_OPT_MPZ_BITWISE to use the fast functions for positive arguments.
Showing
- py/mpconfig.h 6 additions, 0 deletionspy/mpconfig.h
- py/mpz.c 199 additions, 68 deletionspy/mpz.c
- stmhal/mpconfigport.h 1 addition, 0 deletionsstmhal/mpconfigport.h
- tests/basics/int_big_and.py 117 additions, 0 deletionstests/basics/int_big_and.py
- tests/basics/int_big_or.py 140 additions, 0 deletionstests/basics/int_big_or.py
- tests/basics/int_big_xor.py 129 additions, 0 deletionstests/basics/int_big_xor.py
- tests/misc/non_compliant.py 0 additions, 19 deletionstests/misc/non_compliant.py
- tests/misc/non_compliant.py.exp 0 additions, 3 deletionstests/misc/non_compliant.py.exp
Please register or sign in to comment