Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35a86023 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Workaround apps that make assumptions about pointer ids."

parents ea5361f6 2e0b543c
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -44,6 +44,9 @@ struct BitSet32 {
    // Returns true if the bit set does not contain any marked bits.
    // Returns true if the bit set does not contain any marked bits.
    inline bool isEmpty() const { return ! value; }
    inline bool isEmpty() const { return ! value; }


    // Returns true if the bit set does not contain any unmarked bits.
    inline bool isFull() const { return value == 0xffffffff; }

    // Returns true if the specified bit is marked.
    // Returns true if the specified bit is marked.
    inline bool hasBit(uint32_t n) const { return value & valueForBit(n); }
    inline bool hasBit(uint32_t n) const { return value & valueForBit(n); }