1. 15 Feb, 2021 2 commits
  2. 14 Feb, 2021 2 commits
  3. 13 Feb, 2021 3 commits
  4. 12 Feb, 2021 9 commits
  5. 11 Feb, 2021 2 commits
  6. 08 Feb, 2021 2 commits
    • Damien George's avatar
      esp8266/modules: Fix fs_corrupted() to use start_sec not START_SEC. · c7aaee2b
      Damien George authored
      START_SEC was changed in e0905e85.
      
      Also, update the error message to mention how to format the partition at
      the REPL, and make the total message shorter to save a bit of flash.
      Signed-off-by: default avatarDamien George <damien@micropython.org>
      c7aaee2b
    • Damien George's avatar
      py/mpz: Fix overflow of borrow in mpn_div. · 0a599385
      Damien George authored
      For certain operands to mpn_div, the existing code path for
      `DIG_SIZE == MPZ_DBL_DIG_SIZE / 2` had a bug in it where borrow could still
      overflow in the `(x >= *n || *n - x <= borrow)` branch, ie
      `borrow + x - (mpz_dbl_dig_t)*n` overflows the borrow variable.  In such
      cases the subsequent right-shift of borrow would not bring in the overflow
      bit, leading to an error in the result.  An example division that had
      overflow when MPZ_DIG_SIZE = 16 is `(2 ** 48 - 1) ** 2 // (2 ** 48 - 1)`.
      
      This is fixed in this commit by simplifying the code and handling the low
      digits of borrow first, and then the upper bits (to shift down) separately.
      There is no longer a distinction between `DIG_SIZE < MPZ_DBL_DIG_SIZE / 2`
      and `DIG_SIZE == MPZ_DBL_DIG_SIZE / 2`.
      
      This commit also simplifies the second part of the calculation so that
      borrow does not need to be negated (instead the code just works knowing
      that borrow is negative and using + instead of - in calculations involving
      borrow).
      
      Fixes #6777.
      Signed-off-by: default avatarDamien George <damien@micropython.org>
      0a599385
  7. 05 Feb, 2021 1 commit
  8. 04 Feb, 2021 7 commits
  9. 03 Feb, 2021 1 commit
  10. 02 Feb, 2021 9 commits
  11. 01 Feb, 2021 2 commits