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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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