Ignore:
Timestamp:
Oct 21, 2008, 3:21:39 AM (17 years ago)
Author:
bird
Message:

kmk: added strcache2_get_ptr_hash for more efficent hashing by string pool users; replacing hash1 with that and hash2 with hash1, thus avoiding unnecessary hash2 calculations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/strcache2.c

    r1888 r1897  
    526526
    527527  size = length + 1 + sizeof (struct strcache2_entry);
    528   size = (size + sizeof (void *) - 1) & ~(sizeof (void *) - 1U);
     528  size = (size + STRCACHE2_ENTRY_ALIGNMENT - 1) & ~(STRCACHE2_ENTRY_ALIGNMENT - 1U);
    529529
    530530  seg = cache->seg_head;
Note: See TracChangeset for help on using the changeset viewer.