From 1147b53dcd777917272673f473f380afa2e09a0c Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Fri, 9 Sep 2011 09:33:38 -0700 Subject: [PATCH] Add #define with target vector width in emitted headers --- module.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/module.cpp b/module.cpp index f47f73ce..e816a356 100644 --- a/module.cpp +++ b/module.cpp @@ -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");