Changeset 30c0826 in mainline


Ignore:
Timestamp:
2012-08-08T16:50:33Z (12 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
85d31de9
Parents:
da68871a
Message:

cht: Fixed performance regression on 64-bit machines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/adt/cht.c

    rda68871a r30c0826  
    18721872{
    18731873        /* Mimick calc_node_hash. */
    1874         return hash_mix(h->op->key_hash(key)) & ~1U;
     1874        return hash_mix(h->op->key_hash(key)) & ~(size_t)1;
    18751875}
    18761876
     
    18911891         * to be the greatest possible.
    18921892         */
    1893         return hash_mix(h->op->hash(item)) & ~1U;
     1893        return hash_mix(h->op->hash(item)) & ~(size_t)1;
    18941894}
    18951895
Note: See TracChangeset for help on using the changeset viewer.