Changeset 2567 in CLRX


Ignore:
Timestamp:
Nov 16, 2016, 5:51:30 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: ElfBinGen?: Small fix in hash table optimization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdbin/ElfBinaries.cpp

    r2565 r2567  
    408408    uint32_t firstStep = std::max(uint32_t(hashNum>>2), 1U);
    409409    uint64_t maxSteps = (uint64_t(hashNum)<<1) - (firstStep) + 1;
    410     const uint32_t steps = (maxSteps<=1000U) ? hashNum : hashNum<<((32-CLZ32(hashNum))>>1);
     410    const uint32_t steps = (maxSteps<=1000U) ? maxSteps :
     411                hashNum<<((32-CLZ32(hashNum))>>1);
    411412   
    412413    std::unique_ptr<uint32_t[]> chainLengths(new uint32_t[(hashNum<<2)+1]);
Note: See TracChangeset for help on using the changeset viewer.