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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [machine/] [w65/] [mulsi3.c] - Blame information for rev 862

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

Line No. Rev Author Line
1 148 jeremybenn
 
2
 
3
long
4
__mulsi3(unsigned long a, unsigned long b)
5
{
6
  long res = 0;
7
  while (a)
8
    {
9
      if (a & 1)
10
        {
11
          res += b;
12
        }
13
      b <<= 1;
14
      a >>=1;
15
    }
16
  return res;
17
}

powered by: WebSVN 2.1.0

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