summaryrefslogtreecommitdiff
path: root/include/asm-x86_64/div64.h
blob: 2c94d0762fe03dc8c7af3930d4e0d24667d47c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __X86_64_DIV64
#define __X86_64_DIV64

/*
 * Hey, we're already 64-bit, no
 * need to play games..
 */
#define do_div(n,base) ({ \
	int __res; \
	__res = ((unsigned long) (n)) % (unsigned) (base); \
	(n) = ((unsigned long) (n)) / (unsigned) (base); \
	__res; })

#endif