mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
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
15 lines
396 B
Plaintext
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;
|
|
}
|
|
*/
|