Changeset b37b398 in git for Singular/links/ndbm.cc


Ignore:
Timestamp:
Oct 19, 2012, 6:36:03 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1bc7201c1a771fb5cc842ca4f475ba3ea91e6979
Parents:
d30a39922dc390f97b6cd257b2e7c55d483f4159237c4266ccdbbf8b6c6046b550e61cb1751b2b35
Message:
Merge pull request #191 from mmklee/factoryassert_sw

Factoryassert sw
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/ndbm.cc

    r237c42 rb37b398  
    6161static  datum makdatum(char buf[PBLKSIZ], int n);
    6262static  int finddatum(char buf[PBLKSIZ], datum item);
    63 static  long hashinc(register DBM *db, long hash);
    6463static  long dcalchash(datum item);
    6564static  int delitem(char buf[PBLKSIZ], int n);
     
    449448};
    450449
    451 static long hashinc(register DBM *db, long hash)
    452 {
    453   long bit;
    454 
    455   hash &= db->dbm_hmask;
    456   bit = db->dbm_hmask+1;
    457   for (;;)
    458   {
    459     bit >>= 1;
    460     if (bit == 0)
    461       return (0L);
    462     if ((hash & bit) == 0)
    463       return (hash | bit);
    464     hash &= ~bit;
    465   }
    466 }
    467 
    468450static long dcalchash(datum item)
    469451{
Note: See TracChangeset for help on using the changeset viewer.