summaryrefslogtreecommitdiff
path: root/Tests/ISPC/ChainedStaticLibraries/extra.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ISPC/ChainedStaticLibraries/extra.cxx')
-rw-r--r--Tests/ISPC/ChainedStaticLibraries/extra.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/ISPC/ChainedStaticLibraries/extra.cxx b/Tests/ISPC/ChainedStaticLibraries/extra.cxx
new file mode 100644
index 0000000000..9f50df445d
--- /dev/null
+++ b/Tests/ISPC/ChainedStaticLibraries/extra.cxx
@@ -0,0 +1,17 @@
+#include <stdio.h>
+
+#include "extra_ispc.h"
+
+int extra()
+{
+ float vin[16], vout[16];
+ for (int i = 0; i < 16; ++i)
+ vin[i] = i;
+
+ ispc::extra(vin, vout, 16);
+
+ for (int i = 0; i < 16; ++i)
+ printf("%d: extra(%f) = %f\n", i, vin[i], vout[i]);
+
+ return 0;
+}