The problem is not in finding the top bit. The dsPIC has a really nice=20 single cycle instructon that returns the bit location of the first "1" bit in an INT16. (Instruction=20 FF1L). the problem comes in the time it takes to do a multi-word left shift until that bit aligns with= =20 the MS bit of the INT32. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .