문제

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

올바른 솔루션이 없습니다

다른 팁

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top