- Stephen Rothwell: APM updates
[davej-history.git] / include / asm-mips64 / div64.h
blobbb15c7ac2173d02cb291360209c9b07137c0009d
1 /* $Id: div64.h,v 1.1 2000/01/28 23:18:55 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
6 */
7 #ifndef _ASM_DIV64_H
8 #define _ASM_DIV64_H
11 * Hey, we're already 64-bit, no
12 * need to play games..
14 #define do_div(n,base) ({ \
15 int __res; \
16 __res = ((unsigned long) n) % (unsigned) base; \
17 n = ((unsigned long) n) / (unsigned) base; \
18 __res; })
20 #endif /* _ASM_DIV64_H */