projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fc7da6
)
configurator: detect __builtin_cpu_supports.
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 11 Jun 2019 04:53:52 +0000
(14:23 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 11 Jun 2019 04:53:52 +0000
(14:23 +0930)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/configurator/configurator.c
patch
|
blob
|
history
diff --git
a/tools/configurator/configurator.c
b/tools/configurator/configurator.c
index f15f34483c36352549af73a9facea230ced71bfe..d676b882329d55706e818eb93884393deb520e31 100644
(file)
--- a/
tools/configurator/configurator.c
+++ b/
tools/configurator/configurator.c
@@
-488,6
+488,13
@@
static const struct test base_tests[] = {
" return worked ? 0 : 1;\n"
"}\n"
},
+ { "HAVE_BUILTIN_CPU_SUPPORTS", "__builtin_cpu_supports()",
+ "DEFINES_FUNC", NULL, NULL,
+ "#include <stdbool.h>\n"
+ "static bool func(void) {\n"
+ " return __builtin_cpu_supports(\"mmx\");\n"
+ "}"
+ },
};
static void c12r_err(int eval, const char *fmt, ...)