Help me Upgrade my x86 C++ software to x64 bit MMX to SSE2

This .cpp has MMX intrinsics and needs to be SSE2 compatible. It should be easy to folks that are familiar with this stuff. I believe it needs to not reference files: mmintrin.h but rather emmintrin.h. You can also look at a stackoverflow that I've posted that no one bothered to post a satisfactory answer on:

[url removed, login to view]

which was linked to this one:

[url removed, login to view]

Attached you'll find the original 'x86' [url removed, login to view] and my attempt at making this x64

My x64 version is very close to working. It doesn't fail per sae, it just produces image results that are less than satisfactory. So some of the calculations are obviously off in the 64bit version. I will make a joke and say that the image is a bit 'convoluted'...hehe. Attached is also an image produced by my 64bit version, showing what I'm producing. It's not supposed to look like that.

Your job is to fix the 64bit SSE calculations. Find what converted x86 to x64 functions are converted incorrectly, or what needs to be changed in the code to work more properly. This should be rather simple for an MMX expert.

One guy pointed out that I cannot do this: '(__m128i*)lpruSumCurr' where lpruSumCurr is an INT_PTR. Well I cannot find a way around it at the moment.

Edit: Added the entire solution...

https://drive.google.com/file/d/0B3qrpuwM39vmb2pRU0JuMHNnSGM/view?usp=sharing - Here is the link to the solution file.

Cherchez-vous à gagner de l'argent ?

Décerné à :

Hello, i am experienced C/C++ developer (over 6 years). I can do it for you, but i need some info about how to use this code and some test data for check result code behavior correctness.
As i can understand this codePlus

200 $ USD en 3 jours

(8 Commentaires)

4.1

4 freelancers are bidding on average $162 for this job

Greetings,
I'm form a low-level C++ background- mostly electronics and large scale enterprise software and systems.
I'll take a look at your code and be in touch shortly- with any initial questions or observationsPlus