??? 05/30/12 12:29 Read: times |
#187581 - provided the case ... Responding to: ???'s previous message |
Christoph Franck said:
x = (x >= 0) ? (x >> 10) : (-((-x) >> 10));is so much faster and results in smaller code? (provided the case (x == NEGATIVE_MAX) never occurs or is handled separately) If I now IAR this is exactly why they will call the division routine for signed 64-bit integers. They will never sacrifice correctness under any circumstance for code size or speed. What does it generate for unsigned 64-bit integers? And why did you not use unsigned as recommended in the article? |