summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/div64.h
blob: 114e6ab341479572288e5b4d2d243af3486ce6a9 (plain)
1
2
3
4
5
6
7
8
9
10
#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