summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/div64.h
blob: 167260a9c9535fde52901284f7f531fb957e63c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef __SPARC_DIV64
#define __SPARC_DIV64

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

#endif /* __SPARC_DIV64 */