Masami Hiramatsu wrote: > Hi Harvey, > > Harvey Harrison wrote: >> Fold some small ifdefs into a helper function. >> >> Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> >> --- >> Masami, Ingo, I had this left in some unsent kprobes unification >> work. Depends on your tastes, but does reduce ifdefs and is a bit >> better about self-documenting the REX prefix on X86_64. > > Basically, I think it is good idea. > Could you use a macro same as the stack_addr() macro, like as below? > > #defile is_REX_prefix(insn) ((insn & 0xf0) == 0x40)) > > This is just a bit checker, so I think a macro is better to do that. >
Why is a macro better than an inline, and why the odd mIXed case? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/