From 2f75df5a713a9b0373b496aeb4cd83768fd0a488 Mon Sep 17 00:00:00 2001 From: Jann Horn Date: Tue, 20 Aug 2013 21:33:41 +0200 Subject: [PATCH] =?utf8?q?string:=20fix=20=E2=80=93=20it=20should=20also?= =?utf8?q?=20still=20compile=20on=20SSE2=20machines?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- string.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/string.c b/string.c index 76aa69e..7e6da4f 100644 --- a/string.c +++ b/string.c @@ -1,6 +1,10 @@ // Copyright (2013) Jann Horn // This code is licensed under the AGPLv3. +#ifdef __SSE2__ +#include +#endif + #include HEADER #include @@ -31,7 +35,6 @@ PUBLIC_FN size_t count_char_occurences_in_buf(char *b, size_t bl, char c) { size_t res = 0; #ifdef __SSE2__ - #include // do it the simple way until we get to the next 16-byte-aligned address while ((((uint64_t)b)&0xf) && b // do it the simple way until we get to the next 16-byte-aligned address while ((((uint64_t)b)&0xf) && b