¡@

Home 

c++ Programming Glossary: ecx

Is delete[] equal to delete?

http://stackoverflow.com/questions/1553382/is-delete-equal-to-delete

ptr ptr 00413520 mov dword ptr ebp 0ECh eax 00413526 mov ecx dword ptr ebp 0ECh 0041352C push ecx 0041352D call operator.. 0ECh eax 00413526 mov ecx dword ptr ebp 0ECh 0041352C push ecx 0041352D call operator delete 4111DBh 00413532 add esp 4 delete.. ptr ptr 00413538 mov dword ptr ebp 0E0h eax 0041353E mov ecx dword ptr ebp 0E0h 00413544 push ecx 00413545 call operator..

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

edx edx jg SHORT L4458 177 pDestination 0 mov BYTE PTR ecx 0 178 else if iScaled PRECISION3 jmp SHORT L4461 L4458 cmp edx.. 00001000H jl SHORT L4460 179 pDestination 255 mov BYTE PTR ecx 255 000000ffH 180 else jmp SHORT L4461 L4460 181 182 iSRGB FloatToSRGBTable3.. iSRGB mov dl BYTE PTR _FloatToSRGBTable3 edx mov BYTE PTR ecx dl L4461 184 185 pSource add esi 4 186 pDestination inc ecx..

Why is one loop so much slower than two loops?

http://stackoverflow.com/questions/8547778/why-is-one-loop-so-much-slower-than-two-loops

movsd xmm0 mmword ptr edx 18h addsd xmm0 mmword ptr ecx 20h movsd mmword ptr ecx 20h xmm0 movsd xmm0 mmword ptr esi.. ptr edx 18h addsd xmm0 mmword ptr ecx 20h movsd mmword ptr ecx 20h xmm0 movsd xmm0 mmword ptr esi 10h addsd xmm0 mmword ptr.. xmm0 movsd xmm0 mmword ptr edx 20h addsd xmm0 mmword ptr ecx 28h movsd mmword ptr ecx 28h xmm0 movsd xmm0 mmword ptr esi..

CPUID implementations in C++

http://stackoverflow.com/questions/1666093/cpuid-implementations-in-c

volatile cpuid a regs 0 b regs 1 c regs 2 d regs 3 a i c 0 ECX is set to zero for CPUID function 4 #endif const uint32_t EAX.. 0 const uint32_t EBX const return regs 1 const uint32_t ECX const return regs 2 const uint32_t EDX const return regs 3 #endif.. const char cpuID.EDX 4 vendor string const char cpuID.ECX 4 cout CPU vendor vendor endl return 0 This WikiPedia page tells..

Unusual heap size limitations in VS2003 C++

http://stackoverflow.com/questions/2469738/unusual-heap-size-limitations-in-vs2003-c

With the registers as follows EAX 009C8AF0 EBX FFFFFFFF ECX 009C8A88 EDX 00747365 ESI 00430F80 EDI 00430F80 EIP 0040B160..

Programatically detect number of physical processors/cores or if hyper-threading is active on Windows, Mac and Linux

http://stackoverflow.com/questions/2901694/programatically-detect-number-of-physical-processors-cores-or-if-hyper-threading

CPUID function 4 If vendor 'AuthenticAMD' this is 1 plus ECX 7 0 from CPUID function 0x80000008 Sounds difficult but here.. volatile cpuid a regs 0 b regs 1 c regs 2 d regs 3 a i c 0 ECX is set to zero for CPUID function 4 #endif int main int argc.. EBX unsigned vendor 1 regs 3 EDX unsigned vendor 2 regs 2 ECX string cpuVendor string vendor 12 Get CPU features cpuID 1 regs..