packing unsigned char in PVM
dek_ml at konerding.com
dek_ml at konerding.com
Tue Jun 27 22:15:16 PDT 2000
"Robert G. Brown" writes:
>On Wed, 28 Jun 2000, Burgu Praveen Kumar wrote:
>
>>
>> Can anyone of u tell me how to pack unsigned char in PVM.
>
>I thought char was always unsigned. Signed and unsigned differentiates
>integers (only), or at least so I thought -- reserving the sign bit.
>You should just pack for char, at a guess.
On SGIs, char is unsigned, on Intel, char is signed. CPUs can do either
(just like endian). I found this out when the results I got in a program
I had ported to linux were junk-- -1's when they should have been 255s.
Dave
More information about the Beowulf
mailing list