[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200703100403.l2A4355v008616@turing-police.cc.vt.edu>
Date: Fri, 09 Mar 2007 23:03:05 -0500
From: Valdis.Kletnieks@...edu
To: Rusty Russell <rusty@...tcorp.com.au>
Cc: lkml - Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] Use more gcc extensions in the Linux headers
On Sat, 10 Mar 2007 09:57:32 +1100, Rusty Russell said:
> +/* GCC is awesome. */
> #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) \
> + sizeof(typeof(int[1 - 2*!!__builtin_types_compatible_p(typeof(arr), \
> typeof(&arr[0]))]))*0)
-/* GCC is awesome. */
+/* GCC leaves me speechless. */
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists