View Single Post
Old 03 November 2009, 11:17   #10
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
nice work Leffmann!

hint: (saves a lot of '0' typing)

not
Code:
d3l = (d3l&0xffff0000) | d3
but

Code:
d3l = (d3l&(~0xffff)) | d3
... should do the same thing
In int, ffff0000 is the 2's complement of 0000ffff
Not sure if you need those inner parentheses, even...

Last edited by andreas; 03 November 2009 at 11:29.
andreas is offline  
 
Page generated in 0.07698 seconds with 11 queries