An error occurred fetching the project authors.
  1. 24 Dec, 2003 1 commit
  2. 14 Oct, 2003 2 commits
    • Russell King's avatar
      [ARM] Fix div64 implementation. · 7a085672
      Russell King authored
      Our do_div implementation can't correctly handle divisors with the
      top bit set.  This cset fixes this up with a minimal change.
      7a085672
    • Nicolas Pitre's avatar
      [ARM PATCH] 1678/1: correct and better do_div() implementation for ARM · 3eb64c82
      Nicolas Pitre authored
      Patch from Nicolas Pitre
      
      Here's a rewrite of the ARM do_div() implementation.  It is much
      faster and smarter than the current code, and it also takes
      advantage of ARMv5+ instructions when target processor allows it.
      
      The current code also deserves to be killed ASAP since it overflows
      and fails to compute correct values in many cases.  For example:
      
      	u64 n = 2200000001;
      	u32 x = 2200000000;
      	u32 r = do_div(n, x);
      
      This currently returns n = 41 and r = 46829569 which is obviously bad.
      
      Another failing example is n=15000000000000000000 and x=3000000000.
      3eb64c82
  3. 11 Jun, 2003 1 commit
  4. 26 Mar, 2003 1 commit
    • Russell King's avatar
      [ARM] Fix ARM do_div() implementation · 0656dd6d
      Russell King authored
      The ARM do_div() implementation was rather lax in that it only
      performed a 32-bit divide.  This cset fixes this oversight by
      providing a 64-bit by 32-bit division in asm.
      
      This is necessary for posix-timers to function correctly.
      0656dd6d