Commit 4cc36058 authored by Milo Yip's avatar Milo Yip

Merge pull request #232 from drewnoakes/pr/simd-load-alignment

Use aligned SSE register load intrinsic.
parents 24dd7ef8 41f3c60b
......@@ -277,7 +277,7 @@ inline const char *SkipWhitespace_SIMD(const char* p) {
// The rest of string using SIMD
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) {
const __m128i s = _mm_load_si128((const __m128i *)p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment