1. 29 Aug, 2014 1 commit
  2. 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
  3. 24 Jul, 2014 1 commit
  4. 03 Jul, 2014 2 commits
  5. 20 Jun, 2014 1 commit
  6. 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
  7. 28 May, 2014 2 commits
  8. 21 May, 2014 1 commit
  9. 17 May, 2014 1 commit
  10. 10 May, 2014 1 commit
  11. 07 May, 2014 1 commit
  12. 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
  13. 02 May, 2014 1 commit
  14. 17 Apr, 2014 1 commit
  15. 11 Apr, 2014 1 commit
  16. 08 Apr, 2014 1 commit
    • Damien George's avatar
      py: Make it so that printing a small int does not allocate heap memory. · 88d7bba9
      Damien George authored
      With the implementation of proper string formatting, code to print a
      small int was delegated to mpz_as_str_inpl (after first converting the
      small int to an mpz using stack memory).  But mpz_as_str_inpl allocates
      heap memory to do the conversion, so small ints needed heap memory just
      to be printed.
      
      This fix has a separate function to print small ints, which does not
      allocate heap, and allocates less stack.
      
      String formatting, printf and pfenv are now large beasts, with some
      semi-duplicated code.
      88d7bba9
  17. 07 Apr, 2014 1 commit
  18. 05 Apr, 2014 1 commit
  19. 04 Apr, 2014 2 commits
  20. 03 Apr, 2014 1 commit
  21. 02 Apr, 2014 1 commit
  22. 30 Mar, 2014 1 commit
    • Damien George's avatar
      Rename rt_* to mp_*. · d17926db
      Damien George authored
      Mostly just a global search and replace.  Except rt_is_true which
      becomes mp_obj_is_true.
      
      Still would like to tidy up some of the names, but this will do for now.
      d17926db
  23. 29 Mar, 2014 2 commits
  24. 22 Mar, 2014 5 commits
  25. 20 Mar, 2014 1 commit
  26. 19 Mar, 2014 1 commit
  27. 17 Mar, 2014 1 commit
    • xbe's avatar
      py: Clean up includes. · efe34223
      xbe authored
      Remove unnecessary includes. Add includes that improve portability.
      efe34223
  28. 12 Mar, 2014 1 commit
  29. 08 Mar, 2014 1 commit
  30. 01 Mar, 2014 1 commit
    • Damien George's avatar
      py: Implement bit-shift and not operations for mpz. · 06201ff3
      Damien George authored
      Implement not, shl and shr in mpz library.  Add function to create mpzs
      on the stack, used for memory efficiency when rhs is a small int.
      Factor out code to parse base-prefix of number into a dedicated function.
      06201ff3
  31. 22 Feb, 2014 1 commit