On Wed, Oct 29, 2008 at 10:48:48AM +0100, Frank Schmitt <[EMAIL PROTECTED]>
wrote:
> which works under both 32 and 64 bit. However I'm not sure if this works
> on big-endian 64 bit systems as well and I've got no such system to test
Me neither - I don't know how afterimage encodes the image data, but i
suspect it's octet-encoded, so you would need to read the image data one
octte a time and built your long's manually form the constituent bytes, e.g.
(byte[0] << 24) | (byte[1] << 16) | ...
If libafterimage stores the image as a series of 32 bit integers, then thw
shifting would be unnecessary. this is unlikely to be the case, but certainly
within the possible implementation choices.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED]
-=====/_/_//_/\_,_/ /_/\_\
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode