Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. totaljj

    What does this line do?

    I've got the idea now. It is not shifting the actual value but the target. so 0001>>3 would be 0 at the first and adding it with 1.
  2. totaljj

    What does this line do?

    i believe l will be 0 for any value of i and j becuase for example if i= 00011 (3) j=00001 (1) then 3 right shift will do i=11000 j=01000 and & with 1 will do i=0 j=0 and xor 0=l I don't understand why using this rather than computational speed up. is there any equivalent ordinary formula. I...
  3. totaljj

    What does this line do?

    Could you explain what does below line do to l. For example if i=0 and j=0 what's the value of l. l = ((i>>3)&1) ^ ((j>>3)&1) ;

Part and Inventory Search

Back
Top