home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-xtensa / div64.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  428 b   |  20 lines

  1. /*
  2.  * include/asm-xtensa/div64.h
  3.  *
  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.
  7.  *
  8.  * Copyright (C) 2001 - 2005 Tensilica Inc.
  9.  */
  10.  
  11. #ifndef _XTENSA_DIV64_H
  12. #define _XTENSA_DIV64_H
  13.  
  14. #define do_div(n,base) ({ \
  15.     int __res = n % ((unsigned int) base); \
  16.     n /= (unsigned int) base; \
  17.     __res; })
  18.  
  19. #endif
  20.