1. 01 Oct, 2015 2 commits
  2. 25 Apr, 2015 2 commits
  3. 22 Apr, 2015 1 commit
  4. 09 Apr, 2015 1 commit
  5. 12 Mar, 2015 1 commit
  6. 02 Mar, 2015 1 commit
  7. 27 Jan, 2015 1 commit
  8. 24 Jan, 2015 2 commits
  9. 20 Jan, 2015 1 commit
  10. 16 Jan, 2015 1 commit
  11. 09 Jan, 2015 1 commit
  12. 02 Jan, 2015 2 commits
  13. 01 Jan, 2015 1 commit
  14. 31 Dec, 2014 1 commit
  15. 30 Oct, 2014 1 commit
    • stijn's avatar
      mpz: Fix 64bit msvc build · 0e557fac
      stijn authored
      msvc does not treat 1L a 64bit integer hence all occurences of shifting it left or right
      result in undefined behaviour since the maximum allowed shift count for 32bit ints is 31.
      Forcing the correct type explicitely, stored in MPZ_LONG_1, solves this.
      0e557fac
  16. 03 Oct, 2014 1 commit
  17. 10 Sep, 2014 1 commit
  18. 06 Sep, 2014 1 commit
    • Damien George's avatar
      py: Make mpz able to use 16 bits per digit; and 32 on 64-bit arch. · 9a21d2e0
      Damien George authored
      Previously, mpz was restricted to using at most 15 bits in each digit,
      where a digit was a uint16_t.
      
      With this patch, mpz can use all 16 bits in the uint16_t (improvement
      to mpn_div was required).  This gives small inprovements in speed and
      RAM usage.  It also yields savings in ROM code size because all of the
      digit masking operations become no-ops.
      
      Also, mpz can now use a uint32_t as the digit type, and hence use 32
      bits per digit.  This will give decent improvements in mpz speed on
      64-bit machines.
      
      Test for big integer division added.
      9a21d2e0
  19. 05 Sep, 2014 1 commit
  20. 29 Aug, 2014 1 commit
  21. 07 Aug, 2014 1 commit
  22. 31 Jul, 2014 1 commit
    • Damien George's avatar
      py: Improve handling of long-int overflow. · c9aa58e6
      Damien George authored
      This removes mpz_as_int, since that was a terrible function (it
      implemented saturating conversion).
      
      Use mpz_as_int_checked and mpz_as_uint_checked.  These now work
      correctly (they previously had wrong overflow checking, eg
      print(chr(10000000000000)) on 32-bit machine would incorrectly convert
      this large number to a small int).
      c9aa58e6
  23. 24 Jul, 2014 1 commit
  24. 03 Jul, 2014 1 commit
  25. 21 Jun, 2014 1 commit
  26. 01 Jun, 2014 1 commit
    • Damien George's avatar
      Rename bultins config variables to MICROPY_PY_BUILTINS_*. · fb510b3b
      Damien George authored
      This renames:
      MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET
      MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY
      MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE
      MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT
      
      See issue #35 for discussion.
      fb510b3b
  27. 29 May, 2014 1 commit
  28. 13 May, 2014 1 commit
  29. 12 May, 2014 1 commit
  30. 08 May, 2014 1 commit
    • stijn's avatar
      Windows MSVC port · 01d6be4d
      stijn authored
      Extend the windows port so it compiles with the toolchain from Visual Studio 2013
      01d6be4d
  31. 03 May, 2014 1 commit
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
      04b9147e
  32. 08 Apr, 2014 1 commit
  33. 07 Apr, 2014 1 commit
  34. 03 Apr, 2014 2 commits
  35. 22 Mar, 2014 1 commit
    • Paul Sokolovsky's avatar
      objint_mpz: Quick&dirty implementation of bitwise operations. · 57207b88
      Paul Sokolovsky authored
      Made solely to unbreak int-long.py test which in turn uncovered thinko
      with implementation of inplace ops. On mpz level, bitwise ops implemented
      only for same-sign numbers, and are not efficient (unconditional calling of
      mpn_cmp() is apparently superfluous).
      57207b88