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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libc/] [machine/] [h8500/] [mulhi3.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 207 jeremybenn
 
2
 
3
short
4
__mulhi3(short a, short b)
5
{
6
  int r;
7
 
8
  r = 0;
9
  while (a)
10
    {
11
      if (a & 1)
12
        {
13
          r += b;
14
          a>>=1;
15
          b<<=1;
16
        }
17
    }
18
  return r;
19
}
20
 
21
 

powered by: WebSVN 2.1.0

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