[Tfug] Byte Order
Jim Secan
jim at nwra.com
Thu Nov 16 08:09:24 MST 2006
At 09:00 PM 11/15/2006 -0700, Rich wrote:
>yep.
>
>You can be fairly certain the short will be 16 bits, but check with
>sizeof(). In that case, Sparc goes in sequence 0 to 15, while x86
>goes 8-to-15, then 0-to-7.
Yes, I'm working with 16 bit words, and what you describe is indeed what
I'm seeing. Just need to flip the bytes around and be careful about sign
issues.
Thanks.
Jim
*---------------------*-------------------------------*
| Jim Secan | Northwest Research Assoc, Inc |
| (jim at nwra.com) | 2455 E. Speedway, Suite 204 |
| (520) 319-7773 | Tucson, Arizona 85719 |
*---------------------*-------------------------------*
More information about the tfug
mailing list