blob: 49c53693f03b94ba88408f7320eff4bf8407d981 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
int i(int x) {
return as_type<int>((~(as_type<uint>(x)) + 1u));
}
int4 vi(int4 x) {
return as_type<int4>((~(as_type<uint4>(x)) + uint4(1u)));
}