mangosR2/mangos — comment on commit ad0d4cc18ee7e52146d23aa2e798095c230d6a7e
File:  line 0
By boxa:

Example how VC 10 compile:

int result1 = int((in1 * in2) / 100.0f);

0000006d fld dword ptr [ebp-0Ch]
00000070 fld dword ptr [ebp-8]
00000073 fmulp st(1),st
>>>>00000075 fdiv dword ptr ds:[03E02F90h]
0000007b fstp qword ptr [ebp-2Ch]
0000007e movsd xmm0,mmword ptr [ebp-2Ch]
00000083 cvttsd2si eax,xmm0
00000087 mov dword ptr [ebp-18h],eax

int result2 = int((in1 * in2) * 0.01f);

0000008a fld dword ptr [ebp-0Ch]
0000008d fld dword ptr [ebp-8]
00000090 fmulp st(1),st
>>>>00000092 fmul dword ptr ds:[03E02F98h]
00000098 fstp qword ptr [ebp-2Ch]
0000009b movsd xmm0,mmword ptr [ebp-2Ch]
000000a0 cvttsd2si eax,xmm0
000000a4 mov dword ptr [ebp-14h],eax