#include #include using namespace metal; struct SSBO { int4 ints; uint4 uints; }; kernel void main0(device SSBO& _4 [[buffer(0)]]) { int4 _19 = _4.ints; uint4 _20 = _4.uints; _4.ints = popcount(_19); _4.uints = uint4(popcount(_19)); _4.ints = int4(popcount(_20)); _4.uints = popcount(_20); _4.ints = reverse_bits(_19); _4.uints = reverse_bits(_20); _4.ints = extract_bits(_19, uint(1), 11u); _4.uints = uint4(extract_bits(int4(_20), 11u, uint(1))); _4.ints = int4(extract_bits(uint4(_19), uint(1), 11u)); _4.uints = extract_bits(_20, 11u, uint(1)); _4.ints = insert_bits(_19, _19.wzyx, uint(1), 11u); _4.uints = insert_bits(_20, _20.wzyx, 11u, uint(1)); }