| ??? 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" |
| Topic | Author | Date |
| 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 |



