Find bug in one method using C++/SSE2 and propose an optimized version for AVX

I want to create a histogram of vertical gradients in an 8 bit gray image. The vertical distance to calculate the gradient can be specified. I already managed to speed up another part of my code using Intrinsics, but it does not work here. The code runs without exception if the _mm_store_si128 is commented out. When it is not commented, I get an access violation.

You can find the question and the code listed here:

[url removed, login to view]

This should be very easy for programmers experienced with C++ and Intrinsics.

Please bid only if you know the solution already.

You should provide:

1. suggest a working bugfix to the code I provided

2. provide a second solution based on AVX/AVX2

Taidot: C++ -ohjelmointi, Windows Desktop

Näytä lisää: bug method academic writing, c bug, mocking method using, software write mq4, software write chip epson, useful software write book, software write web specs, software write edid, software write websites idea, software write book images, software write books, software write protection, free software write book, software write book, php bug method implemented, software write technical manual

About the Employer:
( 4 reviews ) Freising, Germany

Projektin tunnus: #13114118

4 freelanceria on tarjonnut keskimäärin 71 $ tähän työhön

133 $ USD 1 päivässä
(48 arvostelua)

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Lisää

100 $ USD 1 päivässä
(62 arvostelua)
25 $ USD 1 päivässä
(0 arvostelua)
25 $ USD 1 päivässä
(0 arvostelua)