Here's a routine I wrote a few years back (it could be rewritten using the
VFP bit manipulation functions, but unless you're doing a lot of them, this
is probably good enough). If you want the bit layout, I've included that at
the end. (Feel free to beatify it - most of the layout spacing was...