Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/23/01 12:09
Read: times


 
#14384 - RE: Integer into Low and High byte
The shift-and-mask method is portable, but may be slow (depending on how clever your compiler is at implementing the shift).

The alternative is to use a union but that is non-portable as it relies upon the data representation of your compiler & target.
(but it could be made portable with suitable #ifs).

This was discussed at length recently - try searching for "union"

List of 12 messages in thread
TopicAuthorDate
Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer to Low and High byte - Oleg            01/01/70 00:00      
RE: Integer into Low and High byte - ALL            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High - Lennart            01/01/70 00:00      

Back to Subject List