¡@

Home 

c++ Programming Glossary: indx2

C++ use SSE instructions for comparing huge vectors of ints

http://stackoverflow.com/questions/17791892/c-use-sse-instructions-for-comparing-huge-vectors-of-ints

compare them by this function int getDiff int indx1 int indx2 int result 0 int pplus pminus tmp for int k 0 k 128 k 2 pplus.. 0 int pplus pminus tmp for int k 0 k 128 k 2 pplus nodeL indx2 k nodeL indx1 k pminus nodeL indx1 k 1 nodeL indx2 k 1 tmp max.. nodeL indx2 k nodeL indx1 k pminus nodeL indx1 k 1 nodeL indx2 k 1 tmp max pplus pminus if tmp result result tmp return result..

Weird XOR swap behavior while zeroing out data

http://stackoverflow.com/questions/5785108/weird-xor-swap-behavior-while-zeroing-out-data

matter for this problem int av3index int a int indx1 int indx2 int indx3 if a indx3 max a indx1 a indx2 a indx3 min a indx1.. a int indx1 int indx2 int indx3 if a indx3 max a indx1 a indx2 a indx3 min a indx1 a indx2 return indx3 if a indx2 max a indx1.. indx3 if a indx3 max a indx1 a indx2 a indx3 min a indx1 a indx2 return indx3 if a indx2 max a indx1 a indx3 a indx2 min a indx1..