cleanup
[linux-2.4.git] / include / asm-ppc64 / div64.h
1 #ifndef __PPC_DIV64
2 #define __PPC_DIV64
3
4 /* Copyright 2001 PPC64 Team, IBM Corp
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version
9  * 2 of the License, or (at your option) any later version.
10  */
11
12 #define do_div(n,base) ({ \
13         int __res; \
14         __res = ((unsigned long) (n)) % (unsigned) (base); \
15         (n) = ((unsigned long) (n)) / (unsigned) (base); \
16         __res; })
17
18 #endif