OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-sparc64/] [div64.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
#ifndef __SPARC64_DIV64
2
#define __SPARC64_DIV64
3
 
4
/*
5
 * Hey, we're already 64-bit, no
6
 * need to play games..
7
 */
8
#define do_div(n,base) ({ \
9
        int __res; \
10
        __res = ((unsigned long) n) % (unsigned) base; \
11
        n = ((unsigned long) n) / (unsigned) base; \
12
        __res; })
13
 
14
#endif /* __SPARC64_DIV64 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.