mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
The target property `ISPC_HEADER_SUFFIX` and associated global variable now can control the suffix used when generating the C/C++ interoperability ISPC headers. In addition the default suffix is now "_ispc.h" which matches the common convention that the ISPC compiler team uses and recommends.
18 lines
267 B
C++
18 lines
267 B
C++
#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;
|
|
}
|