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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [iq2000/] [lib2extra-funcs.c] - Diff between revs 38 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 154
typedef unsigned int USItype            __attribute__ ((mode (SI)));
typedef unsigned int USItype            __attribute__ ((mode (SI)));
 
 
USItype
USItype
__mulsi3 (USItype a, USItype b)
__mulsi3 (USItype a, USItype b)
{
{
  USItype c = 0;
  USItype c = 0;
 
 
  while (a != 0)
  while (a != 0)
    {
    {
      if (a & 1)
      if (a & 1)
        c += b;
        c += b;
      a >>= 1;
      a >>= 1;
      b <<= 1;
      b <<= 1;
    }
    }
 
 
  return c;
  return c;
}
}
 
 

powered by: WebSVN 2.1.0

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