repo.or.cz
/
linux-2.6
/
linux-mips.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Partial rewrite.
[linux-2.6/linux-mips.git]
/
include
/
asm-h8300
/
div64.h
blob
df5634def9dc766f87c2a90797e564a877b3aee4
1
#ifndef H8300_DIV64_H
2
#define H8300_DIV64_H
3
4
/* n = n / base; return rem; */
5
6
#define do_div(n,base) ({ \
7
int __res; \
8
__res = ((unsigned long) n) % (unsigned) base; \
9
n = ((unsigned long) n) / (unsigned) base; \
10
__res; \
11
})
12
13
#endif
/* _H8300_DIV64_H */