[BACK]Return to div64.h CVS log [TXT][DIR] Up to [Development] / linux-2.4-xfs / include / asm-x86_64

File: [Development] / linux-2.4-xfs / include / asm-x86_64 / div64.h (download)

Revision 1.1, Wed Dec 31 00:54:49 2003 UTC (13 years, 9 months ago) by cattelan
Branch: MAIN
CVS Tags: HEAD

Initial Import 2.4.24pre2

#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