]> git.sesse.net Git - bmusb/blobdiff - bmusb.cpp
Explicitly declare both versions of add_to_frame_fastpath_core, to prevent GCC from...
[bmusb] / bmusb.cpp
index 080c0bb0dae65f649ee34e5ba26ab023092a5fbf..86779b438357e719f88567b848ef7586e948eb32 100644 (file)
--- a/bmusb.cpp
+++ b/bmusb.cpp
@@ -536,6 +536,10 @@ const uint8_t *add_to_frame_fastpath(FrameAllocator::Frame *current_frame, const
 
 #else  // defined(HAS_MULTIVERSIONING)
 
+__attribute__((target("sse4.1")))
+const uint8_t *add_to_frame_fastpath_core(FrameAllocator::Frame *current_frame, const uint8_t *aligned_start, const uint8_t *limit, const char sync_char);
+
+__attribute__((target("avx2")))
 const uint8_t *add_to_frame_fastpath_core(FrameAllocator::Frame *current_frame, const uint8_t *aligned_start, const uint8_t *limit, const char sync_char);
 
 // Does a memcpy and memchr in one to reduce processing time.