hackrf: default to sse2 on x86/64

gr3.6
Hoernchen 10 years ago
parent af819dfa4a
commit eab1b61253
  1. 4
      CMakeLists.txt
  2. 4
      lib/hackrf/hackrf_sink_c.cc

@ -44,7 +44,11 @@ include(GrVersion) #setup version info
# Compiler specific setup
########################################################################
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64|x86")
SET(USE_SIMD "SSE2" CACHE STRING "Use SIMD instructions")
ELSE()
SET(USE_SIMD "no" CACHE STRING "Use SIMD instructions")
ENDIF()
SET(USE_SIMD_VALUES "no" "SSE2" "AVX")
SET_PROPERTY(CACHE USE_SIMD PROPERTY STRINGS ${USE_SIMD_VALUES})
LIST(FIND USE_SIMD_VALUES ${USE_SIMD} USE_SIMD_INDEX)

@ -441,11 +441,9 @@ int hackrf_sink_c::work( int noutput_items,
}
}
noutput_items = items_consumed;
// Tell runtime system how many input items we consumed on
// each input stream.
consume_each(noutput_items);
consume_each(items_consumed);
// Tell runtime system how many output items we produced.
return 0;

Loading…
Cancel
Save