12 lines
170 B
Plaintext
12 lines
170 B
Plaintext
|
#include <metal_stdlib>
|
||
|
|
||
|
using namespace metal;
|
||
|
int f() {
|
||
|
int i = 0;
|
||
|
while((i < 4)) {
|
||
|
i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
|
||
|
}
|
||
|
return i;
|
||
|
}
|
||
|
|