Ignore:
Timestamp:
10/26/10 10:57:54 (14 years ago)
Author:
Adam Kędziora <s301614@…>
Branches:
master
Children:
a6e708f
Parents:
f712e16
git-author:
Adam Kędziora <s301614@…> (10/26/10 10:57:54)
git-committer:
Adam Kędziora <s301614@…> (10/26/10 10:57:54)
Message:

Replacing old implementation with working implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _old/app/src/lib/symtab.cc

    r57728c1 r1e121f4  
    11#include "symtab.h" 
    22#include <values.h> 
    3 #include <stdio.h> 
    4 #include <malloc.h> 
    5 #include <stdlib.h> 
     3#include <cstdio> 
     4//#include <alloc.h> 
     5#include <cstdlib> 
     6using namespace std; 
    67//--------------------------------------------------------------------------- 
    78 
     
    158159    strncpy((char*)&i2,s+(l/2-2),sizeof(int)); 
    159160    strncpy((char*)&i3,s+(l-4),sizeof(int)); 
    160     return abs((i1+i2+i3) % _sz); 
     161    //return abs((i1+i2+i3) % _sz); 
     162    return (i1+i2+i3) % _sz; 
    161163  } 
    162164  else 
Note: See TracChangeset for help on using the changeset viewer.