summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/div64.h
blob: 27fec4ee6aeda2aae4b61250a3d498cbcddde7a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __ASM_ARM_DIV64
#define __ASM_ARM_DIV64

/* We're not 64-bit, but... */
#define do_div(n,base)						\
({								\
	int __res;						\
	__res = ((unsigned long)n) % (unsigned int)base;	\
	n = ((unsigned long)n) / (unsigned int)base;		\
	__res;							\
})

#endif