On 2/24/2015 12:25 PM, Chen Gang S wrote:
For me, if the raw integer is only used once, we needn't define a macro for it (instead of, we can give a comment for it).
The advantage of names even in this case is that you can group all the macro definitions in one place where they are easy to read and review. Then later when you use them they are self-documenting. And if you are going to use opcode_tilegx.h anyway, you get the names "for free". -- Chris Metcalf, EZChip Semiconductor http://www.ezchip.com