Before using the SSE instructions you have to store away the floating point stack, and restore afterwards. That is costly, unless your strings are huge it won't be worth it. And for huge strings, better algorithms are the way to go (Boyer-Moore or such).
pcmpestri instruction to write similar strpos function?
Pregunta
How can the pcmpestri
instruction be used to write a function similar to strpos
function in C++? I can use g++ compiler.
pcmpestri
is a new instruction that is found in SSE4
No hay solución correcta
Otros consejos
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow