summaryrefslogtreecommitdiff
path: root/release/src/linux/linux/include/asm-ppc/div64.h
blob: 73e8f77004f6aac1cb4f071d44bd6107b12eff33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * BK Id: SCCS/s.div64.h 1.5 05/17/01 18:14:24 cort
 */
#ifndef __PPC_DIV64
#define __PPC_DIV64

#define do_div(n,base) ({ \
int __res; \
__res = ((unsigned long) n) % (unsigned) base; \
n = ((unsigned long) n) / (unsigned) base; \
__res; })

#endif