X-Git-Url: http://git.thejh.net/?p=libjh.git;a=blobdiff_plain;f=string.c;h=41082f10d2ef13bc95f3bb3f76e6f5d131c3c56b;hp=76aa69e4ff338761eb9a0ba825877844c1b4c606;hb=f1079bdbda6d755f21ef6b7f11cf479b17324e93;hpb=cfe1939e7d11c5c3863ed474ff9bc590422c97e7 diff --git a/string.c b/string.c index 76aa69e..41082f1 100644 --- a/string.c +++ b/string.c @@ -1,5 +1,8 @@ // Copyright (2013) Jann Horn -// This code is licensed under the AGPLv3. + +#ifdef __SSE2__ +#include +#endif #include HEADER #include @@ -31,7 +34,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