Partial rewrite.
[linux-2.6/linux-mips.git] / include / asm-h8300 / div64.h
blobdf5634def9dc766f87c2a90797e564a877b3aee4
1 #ifndef H8300_DIV64_H
2 #define H8300_DIV64_H
4 /* n = n / base; return rem; */
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; \
13 #endif /* _H8300_DIV64_H */