[PATCH] hugetlb: demand fault handler
[linux-2.6/mini2440.git] / include / asm-xtensa / div64.h
blobc4a105776383f74cf480217a4de4b74ff6800e8f
1 /*
2 * include/asm-xtensa/div64.h
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
8 * Copyright (C) 2001 - 2005 Tensilica Inc.
9 */
11 #ifndef _XTENSA_DIV64_H
12 #define _XTENSA_DIV64_H
14 #define do_div(n,base) ({ \
15 int __res = n % ((unsigned int) base); \
16 n /= (unsigned int) base; \
17 __res; })
19 #endif