From cc4df34ed935f1f618b7c15f267e17a132800ce9 Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Fri, 17 May 2019 11:55:34 +0900 Subject: [PATCH] add `ALIGNED(16)` --- picohttpparser.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/picohttpparser.c b/picohttpparser.c index d1c3239..ecd2201 100644 --- a/picohttpparser.c +++ b/picohttpparser.c @@ -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)