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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef __PPC_DIV64
2
#define __PPC_DIV64
3
 
4
/* Copyright 2001 PPC64 Team, IBM Corp
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version
9
 * 2 of the License, or (at your option) any later version.
10
 */
11
 
12
#define do_div(n,base) ({ \
13
        int __res; \
14
        __res = ((unsigned long) (n)) % (unsigned) (base); \
15
        (n) = ((unsigned long) (n)) / (unsigned) (base); \
16
        __res; })
17
 
18
#endif

powered by: WebSVN 2.1.0

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