Browse Source

config: add HAVE_BUILTIN_FFSLL

Rusty Russell 15 years ago
parent
commit
e744ae4399
2 changed files with 3 additions and 0 deletions
  1. 1 0
      config.h
  2. 2 0
      tools/configurator/configurator.c

+ 1 - 0
config.h

@@ -18,6 +18,7 @@
 #define HAVE_BUILTIN_CONSTANT_P 1
 #define HAVE_BUILTIN_CONSTANT_P 1
 #define HAVE_BUILTIN_EXPECT 1
 #define HAVE_BUILTIN_EXPECT 1
 #define HAVE_BUILTIN_FFSL 1
 #define HAVE_BUILTIN_FFSL 1
+#define HAVE_BUILTIN_FFSLL 1
 #define HAVE_BUILTIN_POPCOUNTL 1
 #define HAVE_BUILTIN_POPCOUNTL 1
 #define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1
 #define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1
 #define HAVE_BYTESWAP_H 1
 #define HAVE_BYTESWAP_H 1

+ 2 - 0
tools/configurator/configurator.c

@@ -71,6 +71,8 @@ static struct test tests[] = {
 	  "return __builtin_expect(argc == 1, 1) ? 0 : 1;" },
 	  "return __builtin_expect(argc == 1, 1) ? 0 : 1;" },
 	{ "HAVE_BUILTIN_FFSL", INSIDE_MAIN, NULL,
 	{ "HAVE_BUILTIN_FFSL", INSIDE_MAIN, NULL,
 	  "return __builtin_ffsl(0L) == 0 ? 0 : 1;" },
 	  "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,
 	{ "HAVE_BUILTIN_POPCOUNTL", INSIDE_MAIN, NULL,
 	  "return __builtin_popcountl(255L) == 8 ? 0 : 1;" },
 	  "return __builtin_popcountl(255L) == 8 ? 0 : 1;" },
 	{ "HAVE_BUILTIN_TYPES_COMPATIBLE_P", INSIDE_MAIN, NULL,
 	{ "HAVE_BUILTIN_TYPES_COMPATIBLE_P", INSIDE_MAIN, NULL,