¡@

Home 

c++ Programming Glossary: fld

Is < faster than <=? [closed]

http://stackoverflow.com/questions/12135518/is-faster-than

much same code as above but with double instead of int . fld QWORD PTR esp 32 fld QWORD PTR esp 40 fucomip st st 1 Compare.. but with double instead of int . fld QWORD PTR esp 32 fld QWORD PTR esp 40 fucomip st st 1 Compare ST 0 and ST 1 and.. above CF 0 and ZF 0 . test al al je .L2 Do something 1 .L2 fld QWORD PTR esp 32 fld QWORD PTR esp 40 fucomip st st 1 same..

A fast method to round a double to a 32-bit int explained

http://stackoverflow.com/questions/17035464/a-fast-method-to-round-a-double-to-a-32-bit-int-explained

from Lua source #define double2int i n __asm __asm fld n __asm fistp i There is a similar magic number for single precision..

Performance hit from C++ style casts?

http://stackoverflow.com/questions/674982/performance-hit-from-c-style-casts

identical code for both casts with VC code is 00401041 fld dword ptr ebp 8 00401044 call __ftol 0040110c 00401049 mov dword..

How can adding code to a loop make it faster?

http://stackoverflow.com/questions/688325/how-can-adding-code-to-a-loop-make-it-faster

i L4455 174 175 iScaled ftol_ambient pSource PRECISION3 fld DWORD PTR esi fmul DWORD PTR __real@4@400b8000000000000000 fstp.. T5011 ebp 170 int i 171 int iScaled 172 unsigned int iSRGB fld QWORD PTR T5011 ebp 173 for i 0 i iCount i fistp DWORD PTR _i.. L4472 199 200 iScaled ftol_ambient pSource PRECISION3 fld DWORD PTR esi fmul DWORD PTR __real@4@400b8000000000000000 fstp..

Fast multiplication/division by 2 for floats and doubles (C/C++)

http://stackoverflow.com/questions/7720668/fast-multiplication-division-by-2-for-floats-and-doubles-c-c

5.3 seconds... with 1 100th of the iterations inner loop fld qword ptr esp eax 8 38h inc eax fmul st st 1 fstp qword ptr..