??? 05/08/08 19:40 Read: times |
#154590 - Is it worth it? Responding to: ???'s previous message |
First, Russ said:
return "0123456789ABCDEF"[HexValue]; Then, in explanation, Russ said:
The net effect is a mini lookup table, much as if you'd defined the table explicitly, like this:
char hexDigits[] = "0123456789ABCDEF"; return hexDigits[HexValue]; Just wondering: is the generated code comparable? Often, such "shortcuts" in the source don't actually give any benefit in the generated code - just the (potential) drawbacks already noted: |