blob: e55cc92f0808fda89fda8259f65313b8faff856c [file] [log] [blame]
dan sinclairf8c07d42022-10-20 18:40:53 +00001#include <metal_stdlib>
2
3using namespace metal;
4
5int tint_unary_minus(const int v) {
6 return select(-v, v, v == -2147483648);
7}
8
9void tint_symbol() {
10 int b = 2;
11 int c = as_type<int>((as_type<uint>(b) - as_type<uint>(tint_unary_minus(b))));
12}
13