" 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, ...)
{
while (read_test(tests + num_tests)) {
num_tests++;
- tests = realloc(tests, num_tests * sizeof(tests[0]));
+ tests = realloc(tests, (num_tests + 1) * sizeof(tests[0]));
+ tests[num_tests].name = NULL;
}
}