summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/div64.h
blob: bf33c2e8a04d23845f76c730e30643983ca5bce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __ASM_CRIS_DIV64
#define __ASM_CRIS_DIV64

/* copy from asm-arm */

/* 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