// Copyright (2013) Jann Horn <jann@thejh.net>
// This code is licensed under the AGPLv3.
+#ifdef __SSE2__
+#include <emmintrin.h>
+#endif
+
#include <string.h>
HEADER #include <stdint.h>
size_t res = 0;
#ifdef __SSE2__
- #include <emmintrin.h>
// do it the simple way until we get to the next 16-byte-aligned address
while ((((uint64_t)b)&0xf) && b<be) if (*(b++)==c) res++;
int res = 0;
#ifdef __SSE2__
- #include <emmintrin.h>
// do it the simple way until we get to the next 16-byte-aligned address
while ((((uint64_t)b)&0xf) && b<be) if (*(b++)==c) res++;