This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Count Leading Zeros

Note: This was originally posted on 6th April 2009 at http://forums.arm.com

Using the ARM9 CLZ instruction - I am wondering, generally, how often would it be required to use this function and does it justify its inclusion?
Parents
  • Note: This was originally posted on 6th April 2009 at http://forums.arm.com

    It's surprisingly useful when hand-optimizing assembler. I think it has benefits for some cryptographic routines, and it speeds up division routines.

    I don't have any performance figures, but implementing the same functionality without using CLZ requires quite a few instructions.
Reply
  • Note: This was originally posted on 6th April 2009 at http://forums.arm.com

    It's surprisingly useful when hand-optimizing assembler. I think it has benefits for some cryptographic routines, and it speeds up division routines.

    I don't have any performance figures, but implementing the same functionality without using CLZ requires quite a few instructions.
Children
No data