mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
fix lastMatch<64>
This commit is contained in:
parent
ebb1b84ae3
commit
cabd13d18a
@ -120,7 +120,7 @@ const u8 *lastMatch<64>(const u8 *buf, typename SuperVector<64>::movemask_type z
|
|||||||
u32 pos = clz64(~z);
|
u32 pos = clz64(~z);
|
||||||
DEBUG_PRINTF("match @ pos %u\n", pos);
|
DEBUG_PRINTF("match @ pos %u\n", pos);
|
||||||
assert(pos < 64);
|
assert(pos < 64);
|
||||||
return buf + pos;
|
return buf + (63 - pos);
|
||||||
} else {
|
} else {
|
||||||
return NULL; // no match
|
return NULL; // no match
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user