At various times there have been pages on the WWW giving nifty arm code routines to do various things, such as endian swapping in 3 instructions with EOR, the trick with 0x01010101 (I think) to find a 0 byte (for strlen) and so on.
I've tried looking for them and can't find any. Where have they all gone? Does anyone know of any handy? What I'm actually looking for are algorithms to find the lowest and highest bits set in an integer. I don't actually need them in ARM, but it actually seemed to be the easiest way to find them. That was before I started looking. I believe there's a fairly nifty way of finding the highest bit set using something like AND of value and NOT value, or maybe value - 1. Does anyone know where it might be documented? Nicholas Clark -- Even better than the real thing: http://nms-cgi.sourceforge.net/ _______________________________________________ http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm http://www.arm.linux.org.uk/armlinux/mailinglists.php Please visit the above addresses for information on this list.
