On Sun, 1 Aug 2010, Jeffrey Lee wrote:

> The bit that most likely will need modification, however, are the bits in 
> FastMap.c which directly access memory as a char *. For those to work on BE 
> platforms you'd either need to resort to loading words and shifting or invert 
> the lower two bits of the address (so 00 -> 00, 01 -> 11, 10 -> 10, 11 -> 
> 01... say addr ^= (addr&1)<<1, or a more efficient method if possible)

Except that's wrong, of course!

addr ^= 3 is all that you need, because you'll always want to access the 
opposite byte. See why I left this for someone else to fix? ;)

Cheers,

- Jeffrey

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
arcem-devel mailing list
arcem-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/arcem-devel

Reply via email to