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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [iq2000/] [lib2extra-funcs.c] - Rev 858

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

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

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

powered by: WebSVN 2.1.0

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