Commit 0bfaf906 authored by Rusty Russell's avatar Rusty Russell

configurator: detect __builtin_cpu_supports.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 4fc7da62
......@@ -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, ...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment