~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-mips64/div64.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* $Id: div64.h,v 1.1 2000/01/28 23:18:55 ralf Exp $
  2  *
  3  * This file is subject to the terms and conditions of the GNU General Public
  4  * License.  See the file "COPYING" in the main directory of this archive
  5  * for more details.
  6  */
  7 #ifndef _ASM_DIV64_H
  8 #define _ASM_DIV64_H
  9 
 10 /*
 11  * Hey, we're already 64-bit, no
 12  * need to play games..
 13  */
 14 #define do_div(n,base) ({ \
 15         int __res; \
 16         __res = ((unsigned long) n) % (unsigned) base; \
 17         n = ((unsigned long) n) / (unsigned) base; \
 18         __res; })
 19 
 20 #endif /* _ASM_DIV64_H */
 21 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.