Ignore:
Timestamp:
Feb 12, 2009, 12:55:06 PM (16 years ago)
Author:
rosiere
Message:

1) decod_queue : add reg_LAST_SLOT.
2) Commit : insert on event -> to pop decod_queue. Head test : add information (speculative or not)
3) Context State / UPT : Branch miss and Load miss in same cycle.
4) Free List : Bank is on LSB not MSB.
5) Platforms : move data

File:
1 edited

Legend:

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

    r102 r108  
    99  if ( x <= 1)
    1010    return 1;
     11
     12  unsigned int res = mul_soft (x , factoriel_recursif (x-1));
    1113 
    12   return (mul_soft (x , factoriel_recursif (x-1) ) );
     14  return res;
    1315}
    1416
     
    3133void test_factoriel_iteratif (int x)
    3234{
     35  int x_min = 0;
    3336  int x_max = 12;
    3437  int wait [x_max+1];
     
    4851  wait[12] = 479001600; // 1c8cfc00
    4952 
    50   for (int i = 0; i <= ((x<x_max)?x:x_max); i ++)
     53  for (int i = x_min; i <= ((x<x_max)?x:x_max); i ++)
    5154    if (factoriel_iteratif (i) != wait[i]) quit(i+1);
    5255}
     
    5457void test_factoriel_recursif (int x)
    5558{
     59  int x_min = 0;
    5660  int x_max = 12;
    5761  int wait [x_max+1];
     
    7175  wait[12] = 479001600; // 1c8cfc00
    7276 
    73   for (int i = 0; i <= ((x<x_max)?x:x_max); i ++)
     77  for (int i = x_min; i <= ((x<x_max)?x:x_max); i ++)
    7478    if (factoriel_recursif (i) != wait[i]) quit(i+1);
    7579}
Note: See TracChangeset for help on using the changeset viewer.