Lines Matching defs:mask
200 // Returns the timestamp mask given the number of valid timestamp bits.
206 // Checks support for timestamps and returns the timestamp mask.
220 void checkTimestampBits (deUint64 timestamp, deUint64 mask)
227 if (timestamp > mask)
230 msg << std::hex << "Invalid device timestamp value 0x" << timestamp << " according to device timestamp mask 0x" << mask;
928 deUint64 absDiffWithOverflow(deUint64 a, deUint64 b, deUint64 mask = std::numeric_limits<deUint64>::max()) const;
929 deUint64 positiveDiffWithOverflow(deUint64 before, deUint64 after, deUint64 mask = std::numeric_limits<deUint64>::max()) const;
1028 // Get timestamp mask.
1188 // possibilities. We don't know beforehand if B > A or vice versa. Take the valid bit mask into account.
1189 deUint64 CalibratedTimestampTestInstance::absDiffWithOverflow (deUint64 a, deUint64 b, deUint64 mask) const
1203 DE_ASSERT(a <= mask);
1204 DE_ASSERT(b <= mask);
1211 const deUint64 d = (mask - c) + 1;
1216 // Positive difference between both marks, advancing from before to after, taking overflow and the valid bit mask into account.
1217 deUint64 CalibratedTimestampTestInstance::positiveDiffWithOverflow (deUint64 before, deUint64 after, deUint64 mask) const
1219 DE_ASSERT(before <= mask);
1220 DE_ASSERT(after <= mask);
1222 return ((before <= after) ? (after - before) : ((mask - (before - after)) + 1));
3282 // Check timestamp mask for both 64-bit results.