Merge pull request #232 from drewnoakes/pr/simd-load-alignment
Use aligned SSE register load intrinsic.
This commit is contained in:
commit
4cc3605849
@ -277,7 +277,7 @@ inline const char *SkipWhitespace_SIMD(const char* p) {
|
|||||||
|
|
||||||
// The rest of string using SIMD
|
// The rest of string using SIMD
|
||||||
static const char whitespace[16] = " \n\r\t";
|
static const char whitespace[16] = " \n\r\t";
|
||||||
const __m128i w = _mm_loadu_si128((const __m128i *)&whitespace[0]);
|
const __m128i w = _mm_load_si128((const __m128i *)&whitespace[0]);
|
||||||
|
|
||||||
for (;; p += 16) {
|
for (;; p += 16) {
|
||||||
const __m128i s = _mm_load_si128((const __m128i *)p);
|
const __m128i s = _mm_load_si128((const __m128i *)p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user