On Tue, Feb 12, 2013 at 10:25 AM, H. Peter Anvin <h...@zytor.com> wrote: > I just thought up this variant, I'm about to test it, but H.J., do you > see any problems with it? > > #define itype(x) \ > __typeof__(__builtin_choose_expr(sizeof(*(x)) > sizeof(0UL), 0ULL, 0UL)) > > I tried it out with a small test program (attached), and it seems to > work. Next for using it in the kernel... > > -hpa >
It looks OK to me. -- H.J. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/