From: Steinar H. Gunderson Date: Mon, 5 Oct 2015 20:46:20 +0000 (+0200) Subject: Switch __SSE2__ defines over to __SSE4_1__, as we use ptest. X-Git-Tag: 0.4~63 X-Git-Url: https://git.sesse.net/?p=bmusb;a=commitdiff_plain;h=fbff3e4f576c0525241f0f02ad0fd31d215aaa71 Switch __SSE2__ defines over to __SSE4_1__, as we use ptest. --- diff --git a/bmusb.cpp b/bmusb.cpp index 78e6b41..3c86d35 100644 --- a/bmusb.cpp +++ b/bmusb.cpp @@ -13,7 +13,7 @@ #include #include #include -#ifdef __SSE2__ +#ifdef __SSE4_1__ #include #endif #include @@ -281,7 +281,7 @@ void add_to_frame(FrameAllocator::Frame *current_frame, const char *frame_type_n } } -#ifdef __SSE2__ +#ifdef __SSE4_1__ #if 0 void avx2_dump(const char *name, __m256i n) @@ -515,7 +515,7 @@ void decode_packs(const libusb_transfer *xfr, const uint8_t *start = xfr->buffer + offset; const uint8_t *limit = start + pack->actual_length; while (start < limit) { // Usually runs only one iteration. -#ifdef __SSE2__ +#ifdef __SSE4_1__ start = add_to_frame_fastpath(current_frame, start, limit, sync_pattern[0]); if (start == limit) break; assert(start < limit);