From e744ae4399c8dd37a76fa463e982eb8306b1351e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 15 Nov 2010 20:16:40 +1030 Subject: [PATCH 1/1] config: add HAVE_BUILTIN_FFSLL --- config.h | 1 + tools/configurator/configurator.c | 2 ++ 2 files changed, 3 insertions(+) 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, -- 2.39.2