daily update on 20250210 by nitload youmu
This commit is contained in:
@@ -17,14 +17,14 @@ int index_pair_sse(short const *str, uint32_t target, int length)
|
||||
com = _mm_cmpeq_epi16(vec, s_even);
|
||||
result = _mm_movemask_epi8(com);
|
||||
if (result) {
|
||||
for (size_t i = 0; i < 12; i++) {
|
||||
result >>= 2;
|
||||
for (size_t i = 0; i < 7; i++) {
|
||||
if (((result & 0xF) == 0xF)) {
|
||||
return index + i;
|
||||
}
|
||||
if (result == 0) {
|
||||
break;
|
||||
}
|
||||
result >>= 2;
|
||||
}
|
||||
}
|
||||
index += 1;
|
||||
@@ -32,14 +32,14 @@ int index_pair_sse(short const *str, uint32_t target, int length)
|
||||
com = _mm_cmpeq_epi16(vec, s_even);
|
||||
result = _mm_movemask_epi8(com);
|
||||
if (result) {
|
||||
for (size_t i = 0; i < 12; i++) {
|
||||
result >>= 2;
|
||||
for (size_t i = 0; i < 7; i++) {
|
||||
if (((result & 0xF) == 0xF)) {
|
||||
return index + i;
|
||||
}
|
||||
if (result == 0) {
|
||||
break;
|
||||
}
|
||||
result >>= 2;
|
||||
}
|
||||
}
|
||||
index += 7;
|
||||
|
||||
Reference in New Issue
Block a user