MCPcopy Create free account
hub / github.com/creatale/node-dv / histogram_add_simd

Function histogram_add_simd

deps/opencv/modules/imgproc/src/smooth.cpp:908–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

906#define MEDIAN_HAVE_SIMD 1
907
908static inline void histogram_add_simd( const HT x[16], HT y[16] )
909{
910 const __m128i* rx = (const __m128i*)x;
911 __m128i* ry = (__m128i*)y;
912 __m128i r0 = _mm_add_epi16(_mm_load_si128(ry+0),_mm_load_si128(rx+0));
913 __m128i r1 = _mm_add_epi16(_mm_load_si128(ry+1),_mm_load_si128(rx+1));
914 _mm_store_si128(ry+0, r0);
915 _mm_store_si128(ry+1, r1);
916}
917
918static inline void histogram_sub_simd( const HT x[16], HT y[16] )
919{

Callers 1

medianBlur_8u_O1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected