Files
compiler-explorer/examples/ispc/default.ispc
aneshlya efab7336b2 Add ISPC v1.28.2 (#8167)
This PR adds support of recently released ISPC 1.28.2 and updates a
default snippet for it.

Related infra change:
https://github.com/compiler-explorer/infra/pull/1857
2025-10-07 14:55:38 -05:00

15 lines
396 B
Plaintext

// Type your code here, or load an example.
varying int square_even(varying int num) {
return (num % 2 == 0)? num * num: num;
}
// Uncomment this if you would like to execute the code
/*
extern "C" uniform int main() {
print("Hello, World!\n");
print("programCount = %\n", programCount);
print("square_even(%) = %\n", programIndex, square_even(programIndex));
return 0;
}
*/