]> git.sesse.net Git - bmusb/commitdiff
Switch __SSE2__ defines over to __SSE4_1__, as we use ptest.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Oct 2015 20:46:20 +0000 (22:46 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 5 Oct 2015 20:46:20 +0000 (22:46 +0200)
bmusb.cpp

index 78e6b412d1438cdd41354c671ca3c117aa371c57..3c86d358d4ca87acfa6251d267c21653b9879488 100644 (file)
--- a/bmusb.cpp
+++ b/bmusb.cpp
@@ -13,7 +13,7 @@
 #include <fcntl.h>
 #include <stdint.h>
 #include <assert.h>
-#ifdef __SSE2__
+#ifdef __SSE4_1__
 #include <immintrin.h>
 #endif
 #include <algorithm>
@@ -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);