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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [kernel/] [math.c] - Diff between revs 195 and 197

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 195 Rev 197
Line 521... Line 521...
//These five functions will only be used if the flag "-mno-mul" is enabled
//These five functions will only be used if the flag "-mno-mul" is enabled
#ifdef USE_SW_MULT
#ifdef USE_SW_MULT
unsigned long __mulsi3(unsigned long a, unsigned long b)
unsigned long __mulsi3(unsigned long a, unsigned long b)
{
{
   unsigned long answer = 0;
   unsigned long answer = 0;
   int i;
   while(b)
   for(i = 0; i < 32; ++i)
 
   {
   {
      if(b & 1)
      if(b & 1)
         answer += a;
         answer += a;
      a <<= 1;
      a <<= 1;
      b >>= 1;
      b >>= 1;

powered by: WebSVN 2.1.0

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