@@ -75,18 +75,18 @@ class RangeRefComp
7575 GPUd () RangeRefComp(int ent, int n) { set (ent, n); }
7676 GPUdDefault () RangeRefComp() = default ;
7777 GPUdDefault () RangeRefComp(const RangeRefComp& src) = default ;
78- GPUd () void set (int ent, int n)
78+ GPUhd () void set (int ent, int n)
7979 {
8080 mData = (Base (ent) << NBitsN) + (Base (n) & MaskN);
8181 }
8282 GPUd () static constexpr Base getMaxFirstEntry () { return MaskR >> NBitsN; }
8383 GPUd () static constexpr Base getMaxEntries () { return MaskN; }
84- GPUd () int getFirstEntry () const { return mData >> NBitsN; }
85- GPUd () int getEntries () const { return mData & ((0x1 << NBitsN) - 1 ); }
86- GPUd () void setFirstEntry (int ent) { mData = (Base (ent) << NBitsN) | (mData & MaskN); }
87- GPUd () void setEntries (int n) { mData = (mData & MaskR) | (Base (n) & MaskN); }
88- GPUd () void changeEntriesBy (int inc) { setEntries (getEntries () + inc); }
89- GPUd () bool operator ==(const RangeRefComp& other) const
84+ GPUhd () int getFirstEntry () const { return mData >> NBitsN; }
85+ GPUhd () int getEntries () const { return mData & ((0x1 << NBitsN) - 1 ); }
86+ GPUhd () void setFirstEntry (int ent) { mData = (Base (ent) << NBitsN) | (mData & MaskN); }
87+ GPUhd () void setEntries (int n) { mData = (mData & MaskR) | (Base (n) & MaskN); }
88+ GPUhd () void changeEntriesBy (int inc) { setEntries (getEntries () + inc); }
89+ GPUhd () bool operator ==(const RangeRefComp& other) const
9090 {
9191 return mData == other.mData ;
9292 }
0 commit comments