Skip to content

Commit

Permalink
add ALIGNED(16)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed May 17, 2019
1 parent 8040379 commit cc4df34
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions picohttpparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,9 @@ static const char *get_token_to_eol(const char *buf, const char *buf_end, const
const char *token_start = buf;

#ifdef __SSE4_2__
static const char ranges1[16] = "\0\010"
/* allow HT */
"\012\037"
/* allow SP and up to but not including DEL */
"\177\177"
/* allow chars w. MSB set */
;
static const char ALIGNED(16) ranges1[16] = "\0\010" /* allow HT */
"\012\037" /* allow SP and up to but not including DEL */
"\177\177"; /* allow chars w. MSB set */
int found;
buf = findchar_fast(buf, buf_end, ranges1, 6, &found);
if (found)
Expand Down

0 comments on commit cc4df34

Please sign in to comment.