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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [config/] [iq2000/] [lib2extra-funcs.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
typedef unsigned int USItype            __attribute__ ((mode (SI)));
2
 
3
USItype
4
__mulsi3 (USItype a, USItype b)
5
{
6
  USItype c = 0;
7
 
8
  while (a != 0)
9
    {
10
      if (a & 1)
11
        c += b;
12
      a >>= 1;
13
      b <<= 1;
14
    }
15
 
16
  return c;
17
}

powered by: WebSVN 2.1.0

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