Add #define with target vector width in emitted headers

This commit is contained in:
Matt Pharr
2011-09-09 09:33:38 -07:00
parent 4cf831a651
commit 1147b53dcd

View File

@@ -1306,6 +1306,7 @@ Module::writeHeader(const char *fn) {
default:
FATAL("Unhandled target in header emission");
}
fprintf(f, "#define ISPC_TARGET_VECTOR_WIDTH %d\n", g->target.vectorWidth);
fprintf(f, "#ifdef __cplusplus\nnamespace ispc {\n#endif // __cplusplus\n\n");