X-Git-Url: http://git.thejh.net/?p=libjh.git;a=blobdiff_plain;f=string.c;h=7e6da4fc0c05c4435e64d80180c4c97e53bc5b36;hp=f58fd3cc861434afa79a908847356d39b3b94280;hb=2f75df5a713a9b0373b496aeb4cd83768fd0a488;hpb=3aef24fab6d9f51ebbe8094b79de895ff1cdce17 diff --git a/string.c b/string.c index f58fd3c..7e6da4f 100644 --- a/string.c +++ b/string.c @@ -1,8 +1,11 @@ // Copyright (2013) Jann Horn // This code is licensed under the AGPLv3. -#include +#ifdef __SSE2__ #include +#endif + +#include HEADER #include HEADER #define streq(a,b) (!strcmp((a),(b))) @@ -32,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