dan sinclair | f8c07d4 | 2022-10-20 18:40:53 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
2 | |||||
3 | using namespace metal; | ||||
4 | |||||
5 | int tint_unary_minus(const int v) { | ||||
6 | return select(-v, v, v == -2147483648); | ||||
7 | } | ||||
8 | |||||
9 | void 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 |