Ignore:
Timestamp:
Apr 20, 2009, 11:29:17 PM (15 years ago)
Author:
rosiere
Message:

1) Write queue with mealy
2) Network : fix bug
3) leak memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Softwares/Common/src/c/func_factoriel.c

    r108 r115  
    55//-----[ Factoriel ]-------------------------------------------------------
    66
     7#define mul(x,y) mul_soft(x,y)
     8
    79unsigned int factoriel_recursif (unsigned int x)
    810{
     
    1012    return 1;
    1113
    12   unsigned int res = mul_soft (x , factoriel_recursif (x-1));
     14  unsigned int res = mul(x , factoriel_recursif (x-1));
    1315 
    1416  return res;
     
    2123  while (x > 1)
    2224    {
    23       res = mul_soft(res,x);
     25      res = mul(res,x);
    2426      x --;
    2527    }
Note: See TracChangeset for help on using the changeset viewer.