1. 10 Dec, 2015 3 commits
    • Damien George's avatar
      py: Make UNARY_OP_NOT a first-class op, to agree with Py not semantics. · bdbe8c9a
      Damien George authored
      Fixes #1684 and makes "not" match Python semantics.  The code is also
      simplified (the separate MP_BC_NOT opcode is removed) and the patch saves
      68 bytes for bare-arm/ and 52 bytes for minimal/.
      Previously "not x" was implemented as !mp_unary_op(x, MP_UNARY_OP_BOOL),
      so any given object only needs to implement MP_UNARY_OP_BOOL (and the VM
      had a special opcode to do the ! bit).
      With this patch "not x" is implemented as mp_unary_op(x, MP_UNARY_OP_NOT),
      but this operation is caught at the start of mp_unary_op and dispatched as
      !mp_obj_is_true(x).  mp_obj_is_true has special logic to test for
      truthness, and is the correct way to handle the not operation.
    • Henrik Sölver's avatar
      py/emitinlinethumb: Add support for MRS instruction. · e242b178
      Henrik Sölver authored
      Only IPSR and BASEPRI special registers supported at the moment, but easy
      to extend in the future.
    • Paul Sokolovsky's avatar
      lib/utils/printf: Apply workaround for static linking with uclibc. · 1f0aaece
      Paul Sokolovsky authored
      uclibc objects call __GI_vsnprintf().
  2. 09 Dec, 2015 9 commits
  3. 08 Dec, 2015 5 commits
  4. 07 Dec, 2015 9 commits
  5. 06 Dec, 2015 4 commits
  6. 05 Dec, 2015 1 commit
  7. 04 Dec, 2015 9 commits