Ignore:
Timestamp:
Jan 7, 2012, 1:34:35 PM (7 years ago)
Author:
ksherdy
Message:

Update overlap compare template specialized on BitBlock? type to
load_unaligned. Updated test generator. Added template file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/byte_compare.hpp

    r1829 r1831  
    6060template<>
    6161IDISA_ALWAYS_INLINE bool compare<BitBlock>(const BitBlock * x, const BitBlock * y, const uint32_t offset) {
    62     BitBlock temp = simd_xor(*((BitBlock*) ((uint8_t *)x + offset)),
    63                              *((BitBlock*) ((uint8_t *)y + offset)));
     62    BitBlock temp = simd_xor(bitblock::load_unaligned((BitBlock*) ((uint8_t *)x + offset)),
     63                             bitblock::load_unaligned((BitBlock*) ((uint8_t *)y + offset)));
    6464    return bitblock::all(simd_not(temp));
    6565}
Note: See TracChangeset for help on using the changeset viewer.