Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58679
b: refs/heads/master
c: 7e95a01
h: refs/heads/master
i:
  58677: 6b6f269
  58675: ab97c5c
  58671: af4a528
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Jul 10, 2007
1 parent f791b91 commit 84b9ced
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62b396358e837549f20068ed9c3d2bcf99d9ad2d
refs/heads/master: 7e95a016f844fc660bf80065413998a784a78988
9 changes: 5 additions & 4 deletions trunk/include/asm-mips/div64.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

#define do_div64_32(res, high, low, base) ({ \
unsigned long __quot, __mod; \
unsigned long __quot32, __mod32; \
unsigned long __cf, __tmp, __tmp2, __i; \
\
__asm__(".set push\n\t" \
Expand Down Expand Up @@ -48,12 +48,13 @@
"bnez %4, 0b\n\t" \
" srl %5, %1, 0x1f\n\t" \
".set pop" \
: "=&r" (__mod), "=&r" (__tmp), "=&r" (__quot), "=&r" (__cf), \
: "=&r" (__mod32), "=&r" (__tmp), \
"=&r" (__quot32), "=&r" (__cf), \
"=&r" (__i), "=&r" (__tmp2) \
: "Jr" (base), "0" (high), "1" (low)); \
\
(res) = __quot; \
__mod; })
(res) = __quot32; \
__mod32; })

#define do_div(n, base) ({ \
unsigned long long __quot; \
Expand Down

0 comments on commit 84b9ced

Please sign in to comment.