1. 20 Feb, 2018 1 commit
  2. 08 Feb, 2018 1 commit
  3. 27 Nov, 2017 1 commit
    • Damien George's avatar
      py/parsenum: Improve parsing of floating point numbers. · 84895f1a
      Damien George authored
      This patch improves parsing of floating point numbers by converting all the
      digits (integer and fractional) together into a number 1 or greater, and
      then applying the correct power of 10 at the very end.  In particular the
      multiple "multiply by 0.1" operations to build a fraction are now combined
      together and applied at the same time as the exponent, at the very end.
      
      This helps to retain precision during parsing of floats, and also includes
      a check that the number doesn't overflow during the parsing.  One benefit
      is that a float will have the same value no matter where the decimal point
      is located, eg 1.23 == 123e-2.
      84895f1a
  4. 31 Jul, 2017 1 commit
  5. 28 Mar, 2017 1 commit
  6. 28 Dec, 2016 2 commits
  7. 03 Nov, 2016 1 commit
  8. 17 Oct, 2016 1 commit
  9. 29 Mar, 2016 1 commit
  10. 14 Mar, 2016 2 commits
  11. 29 Nov, 2015 1 commit
    • Damien George's avatar
      py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. · 999cedb9
      Damien George authored
      This allows the mp_obj_t type to be configured to something other than a
      pointer-sized primitive type.
      
      This patch also includes additional changes to allow the code to compile
      when sizeof(mp_uint_t) != sizeof(void*), such as using size_t instead of
      mp_uint_t, and various casts.
      999cedb9
  12. 01 Oct, 2015 1 commit
  13. 23 Jun, 2015 2 commits
  14. 30 May, 2015 1 commit
  15. 16 Mar, 2015 1 commit
  16. 08 Feb, 2015 1 commit
    • Damien George's avatar
      py: Parse big-int/float/imag constants directly in parser. · 7d414a1b
      Damien George authored
      Previous to this patch, a big-int, float or imag constant was interned
      (made into a qstr) and then parsed at runtime to create an object each
      time it was needed.  This is wasteful in RAM and not efficient.  Now,
      these constants are parsed straight away in the parser and turned into
      objects.  This allows constants with large numbers of digits (so
      addresses issue #1103) and takes us a step closer to #722.
      7d414a1b
  17. 01 Jan, 2015 1 commit
  18. 06 Nov, 2014 1 commit
  19. 03 Jul, 2014 2 commits
  20. 21 Jun, 2014 1 commit
  21. 20 Jun, 2014 1 commit
  22. 14 Jun, 2014 1 commit
    • Paul Sokolovsky's avatar
      parsenum: Signedness issues. · 0294661d
      Paul Sokolovsky authored
      char can be signedness, and using signedness types is dangerous - it can
      lead to negative offsets when doing table lookups. We apparently should just
      ban char usage.
      0294661d
  23. 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
  24. 28 May, 2014 2 commits
  25. 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
  26. 09 Apr, 2014 1 commit
  27. 05 Apr, 2014 1 commit
  28. 21 Mar, 2014 4 commits
  29. 17 Mar, 2014 1 commit
    • xbe's avatar
      py: Clean up includes. · efe34223
      xbe authored
      Remove unnecessary includes. Add includes that improve portability.
      efe34223
  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