From: Rusty Russell Date: Mon, 15 Nov 2010 09:46:40 +0000 (+1030) Subject: config: add HAVE_BUILTIN_FFSLL X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=e744ae4399c8dd37a76fa463e982eb8306b1351e;ds=sidebyside config: add HAVE_BUILTIN_FFSLL --- diff --git a/config.h b/config.h index bbba84d8..fc2b892d 100644 --- a/config.h +++ b/config.h @@ -18,6 +18,7 @@ #define HAVE_BUILTIN_CONSTANT_P 1 #define HAVE_BUILTIN_EXPECT 1 #define HAVE_BUILTIN_FFSL 1 +#define HAVE_BUILTIN_FFSLL 1 #define HAVE_BUILTIN_POPCOUNTL 1 #define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1 #define HAVE_BYTESWAP_H 1 diff --git a/tools/configurator/configurator.c b/tools/configurator/configurator.c index 1017e5c5..426a2ad7 100644 --- a/tools/configurator/configurator.c +++ b/tools/configurator/configurator.c @@ -71,6 +71,8 @@ static struct test tests[] = { "return __builtin_expect(argc == 1, 1) ? 0 : 1;" }, { "HAVE_BUILTIN_FFSL", INSIDE_MAIN, NULL, "return __builtin_ffsl(0L) == 0 ? 0 : 1;" }, + { "HAVE_BUILTIN_FFSLL", INSIDE_MAIN, NULL, + "return __builtin_ffsll(0LL) == 0 ? 0 : 1;" }, { "HAVE_BUILTIN_POPCOUNTL", INSIDE_MAIN, NULL, "return __builtin_popcountl(255L) == 8 ? 0 : 1;" }, { "HAVE_BUILTIN_TYPES_COMPATIBLE_P", INSIDE_MAIN, NULL,