hackrf: default to sse2 on x86/64

This commit is contained in:
Hoernchen 2013-05-08 20:25:23 +02:00
parent af819dfa4a
commit eab1b61253
2 changed files with 5 additions and 3 deletions

View File

@ -44,7 +44,11 @@ include(GrVersion) #setup version info
# Compiler specific setup # 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") SET(USE_SIMD "no" CACHE STRING "Use SIMD instructions")
ENDIF()
SET(USE_SIMD_VALUES "no" "SSE2" "AVX") SET(USE_SIMD_VALUES "no" "SSE2" "AVX")
SET_PROPERTY(CACHE USE_SIMD PROPERTY STRINGS ${USE_SIMD_VALUES}) SET_PROPERTY(CACHE USE_SIMD PROPERTY STRINGS ${USE_SIMD_VALUES})
LIST(FIND USE_SIMD_VALUES ${USE_SIMD} USE_SIMD_INDEX) LIST(FIND USE_SIMD_VALUES ${USE_SIMD} USE_SIMD_INDEX)

View File

@ -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 // Tell runtime system how many input items we consumed on
// each input stream. // each input stream.
consume_each(noutput_items); consume_each(items_consumed);
// Tell runtime system how many output items we produced. // Tell runtime system how many output items we produced.
return 0; return 0;