seb15753

truekern/overhead.c

Jun 24th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.81 KB | None | 0 0
  1. #include "funcTable.h"
  2. #include "types.h"
  3. #include "lib.h"
  4. //#define attempts 100
  5. #define maxfreq 200
  6. void printResults(int32_t *cycleH,int32_t *cycleL,size_t sizeCycle)
  7. {
  8.     int i;
  9.  
  10.  
  11.         int32_t *tabL;
  12.         tabL = kmalloc(maxfreq*sizeof(*tabL));
  13.     printHexaf(1);//"hello printR\n");
  14.         memset_((char *)tabL,0,maxfreq*sizeof(int32_t));
  15.         for(i=0;i<1;i++)
  16.         {
  17.                 if( (-1)*cycleL[i] >=(maxfreq-1))
  18.                         tabL[maxfreq - 1]++;
  19.                 else
  20.                         tabL[(-1)*cycleL[i]]++;
  21.         }
  22.         for(i=0;i<maxfreq;i++)
  23.                 if(tabL[i] !=0){
  24.                         printHexaf(1);//" cycle : ");
  25.             printHexaf(1);//"ll");//printDecimalf(i);
  26.             printHexaf(1);//" appear ");
  27.             printHexaf(tabL[i]);//
  28.                 }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment