Optimization error in pocc 6.50.17 too?
for(loop = 0; loop<VGN_POINTS; loop++)
[00401050] 31C0 xor eax,eax
{
VGN_normalized_f[loop] = vgn_multiplier * (float)VGN_data[loop];
[00401052] D90500304000 fld dword ptr [00403000]
[00401058] DA0C8550454000 fimul dword ptr [eax*4+VGN_data]
[0040105F] D91C8590454000 fstp dword ptr [eax*4+VGN_normalized_f]
[00401066] 40 inc eax
[00401067] 83F808 cmp eax,+8
[0040106A] 7CE6 jl 00401052
}
for(loop = 0; loop<VGN_POINTS; loop++)
[0040106C] 31C0 xor eax,eax
{
VGN_normalized_i[loop] = (long)(VGN_normalized_f[loop]);
[0040106E] D9048590454000 fld dword ptr [eax*4+VGN_normalized_f]
[00401075] E816000000 call ___ftol
[0040107A] 89C2 mov edx,eax
[0040107C] 89148570454000 mov dword ptr [eax*4+VGN_normalized_i],edx
[00401083] 40 inc eax
[00401084] 83F808 cmp eax,+8
[00401087] 7CE5 jl 0040106E
}
Watch EAX register.