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

Subversion Repositories or1k

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef __SPARC_DIV64
2
#define __SPARC_DIV64
3
 
4
/* We're not 64-bit, but... */
5
#define do_div(n,base) ({ \
6
        int __res; \
7
        __res = ((unsigned long) n) % (unsigned) base; \
8
        n = ((unsigned long) n) / (unsigned) base; \
9
        __res; })
10
 
11
#endif /* __SPARC_DIV64 */

powered by: WebSVN 2.1.0

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