Lines Matching refs:cl_bitfield
20 explicit BitField(cl_bitfield bits) noexcept : mBits(bits) {} in BitField()
22 BitField &operator=(cl_bitfield bits)
28 bool operator==(cl_bitfield bits) const { return mBits == bits; }
29 bool operator!=(cl_bitfield bits) const { return mBits != bits; }
33 cl_bitfield get() const { return mBits; } in get()
35 bool isSet(cl_bitfield bits) const { return (mBits & bits) != 0u; } in isSet()
37 bool isNotSet(cl_bitfield bits) const { return (mBits & bits) == 0u; } in isNotSet()
40 bool hasOtherBitsThan(cl_bitfield bits) const { return (mBits & ~bits) != 0u; } in hasOtherBitsThan()
43 bool areMutuallyExclusive(cl_bitfield bits1, cl_bitfield bits2) const in areMutuallyExclusive()
48 bool areMutuallyExclusive(cl_bitfield bits1, cl_bitfield bits2, cl_bitfield bits3) const in areMutuallyExclusive()
53 BitField mask(cl_bitfield bits) const { return BitField(mBits & bits); } in mask()
56 void set(cl_bitfield bits) { mBits |= bits; } in set()
58 void clear(cl_bitfield bits) { mBits &= ~bits; } in clear()
62 cl_bitfield mBits;
65 static_assert(sizeof(BitField) == sizeof(cl_bitfield), "Type size mismatch");