Changeset 2764 for icXML/icXML-devel


Ignore:
Timestamp:
Dec 9, 2012, 1:43:55 PM (7 years ago)
Author:
cameron
Message:

Fix for null constant bytepack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icXML/icXML-devel/src/icxmlc/XMLStringU.hpp

    r2720 r2764  
    463463XMLSize_t XMLStringU::stringLen(const XMLCh * const string)
    464464{
    465         const BytePack null = simd<1>::constant<chNull>();
     465        const BytePack nulls = simd<1>::constant<chNull>();
    466466        const BytePack * src = reinterpret_cast<const BytePack*>(string);
    467467
     
    477477        {
    478478                BytePack s = bitblock::load_unaligned(&src[index]);
    479                 s = simd<16>::eq(s, null);
     479                s = simd<16>::eq(s, nulls);
    480480                const scanword_t pos = hsimd<8>::signmask(s);
    481481
     
    495495XMLSize_t XMLStringU::stringLenOrIndexOf(const XMLCh * const string)
    496496{
    497         const BytePack null = simd<1>::constant<chNull>();
     497        const BytePack nulls = simd<16>::constant<chNull>();
    498498        const BytePack charmask = simd<16>::constant<character>();
    499499        const BytePack * src = reinterpret_cast<const BytePack*>(string);
     
    510510        {
    511511                BytePack s = bitblock::load_unaligned(&src[index]);
    512                 s = simd_or(simd<16>::eq(s, null), simd<16>::eq(s, charmask));
     512                s = simd_or(simd<16>::eq(s, nulls), simd<16>::eq(s, charmask));
    513513                const scanword_t pos = hsimd<8>::signmask(s);
    514514
Note: See TracChangeset for help on using the changeset viewer.