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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [machine/] [h8500/] [mulhi3.c] - Blame information for rev 407

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

Line No. Rev Author Line
1 148 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.