1. 01 Jan, 2015 1 commit
  2. 29 Dec, 2014 1 commit
  3. 27 Dec, 2014 3 commits
  4. 24 Dec, 2014 1 commit
  5. 20 Dec, 2014 3 commits
  6. 19 Dec, 2014 1 commit
  7. 18 Dec, 2014 1 commit
    • Damien George's avatar
      lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal. · f04329e9
      Damien George authored
      acoshf, asinhf, atanhf were added from musl.  mathsincos.c was
      split up into its original, separate files (from newlibe-nano-2).
      tan was added.
      
      All of the important missing float functions are now implemented,
      and pyboard now passes tests/float/math_fun.py (finally!).
      f04329e9
  8. 09 Dec, 2014 1 commit
    • Damien George's avatar
      py: Allow builtins to be overridden. · 78d702c3
      Damien George authored
      This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
      which, when enabled, allows to override all names within the builtins
      module.  A builtins override dict is created the first time the user
      assigns to a name in the builtins model, and then that dict is searched
      first on subsequent lookups.  Note that this implementation doesn't
      allow deleting of names.
      
      This patch also does some refactoring of builtins code, creating the
      modbuiltins.c file.
      
      Addresses issue #959.
      78d702c3
  9. 08 Dec, 2014 3 commits
  10. 07 Dec, 2014 1 commit
  11. 06 Dec, 2014 1 commit
  12. 05 Dec, 2014 2 commits
    • Damien George's avatar
      py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. · be6d8be9
      Damien George authored
      mp_obj_int_get_truncated is used as a "fast path" int accessor that
      doesn't check for overflow and returns the int truncated to the machine
      word size, ie mp_int_t.
      
      Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word
      sized values.
      
      Addresses issues #779 and #998.
      be6d8be9
    • Damien George's avatar
      py: Optimise lexer by exposing lexer type. · a4c52c5a
      Damien George authored
      mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer
      functions (like checking current token kind) are now inlined.
      
      This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460
      bytes on bare-arm.  It also saves a tiny bit of RAM since mp_lexer_t
      is a bit smaller.  Also will run a bit more efficiently.
      a4c52c5a
  13. 04 Dec, 2014 1 commit
    • Damien George's avatar
      stmhal: Overhaul network drivers; has generic network protocol in C. · 29a1ec1b
      Damien George authored
      This patch overhauls the network driver interface.  A generic NIC must
      provide a set of C-level functions to implement low-level socket control
      (eg socket, bind, connect, send, recv).  Doing this, the network and
      usocket modules can then use such a NIC to implement proper socket
      control at the Python level.
      
      This patch also updates the CC3K and WIZNET5K drivers to conform to the
      new interface, and fixes some bugs in the drivers.  They now work
      reasonably well.
      29a1ec1b
  14. 02 Dec, 2014 1 commit
  15. 30 Nov, 2014 1 commit
  16. 29 Nov, 2014 2 commits
  17. 27 Nov, 2014 3 commits
  18. 26 Nov, 2014 1 commit
  19. 25 Nov, 2014 1 commit
  20. 16 Nov, 2014 3 commits
  21. 15 Nov, 2014 2 commits
  22. 05 Nov, 2014 2 commits
  23. 02 Nov, 2014 1 commit
  24. 31 Oct, 2014 3 commits