Home
last modified time | relevance | path

Searched refs:kIsWrite (Results 1 – 2 of 2) sorted by relevance

/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl.h276 bool ALWAYS_INLINE IsBothReadsOrAtomic(bool kIsWrite, bool kIsAtomic) const { in IsBothReadsOrAtomic() argument
277 bool v = x_ & ((u64(kIsWrite ^ 1) << kReadShift) in IsBothReadsOrAtomic()
279 DCHECK_EQ(v, (!IsWrite() && !kIsWrite) || (IsAtomic() && kIsAtomic)); in IsBothReadsOrAtomic()
283 bool ALWAYS_INLINE IsRWNotWeaker(bool kIsWrite, bool kIsAtomic) const { in IsRWNotWeaker() argument
285 <= u64((kIsWrite ^ 1) | (kIsAtomic << 1)); in IsRWNotWeaker()
287 (IsAtomic() == kIsAtomic && !IsWrite() <= !kIsWrite)); in IsRWNotWeaker()
291 bool ALWAYS_INLINE IsRWWeakerOrEqual(bool kIsWrite, bool kIsAtomic) const { in IsRWWeakerOrEqual() argument
293 >= u64((kIsWrite ^ 1) | (kIsAtomic << 1)); in IsRWWeakerOrEqual()
295 (IsAtomic() == kIsAtomic && !IsWrite() >= !kIsWrite)); in IsRWWeakerOrEqual()
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_rtl.h283 bool ALWAYS_INLINE IsBothReadsOrAtomic(bool kIsWrite, bool kIsAtomic) const { in IsBothReadsOrAtomic() argument
284 bool v = x_ & ((u64(kIsWrite ^ 1) << kReadShift) in IsBothReadsOrAtomic()
286 DCHECK_EQ(v, (!IsWrite() && !kIsWrite) || (IsAtomic() && kIsAtomic)); in IsBothReadsOrAtomic()
290 bool ALWAYS_INLINE IsRWNotWeaker(bool kIsWrite, bool kIsAtomic) const { in IsRWNotWeaker() argument
292 <= u64((kIsWrite ^ 1) | (kIsAtomic << 1)); in IsRWNotWeaker()
294 (IsAtomic() == kIsAtomic && !IsWrite() <= !kIsWrite)); in IsRWNotWeaker()
298 bool ALWAYS_INLINE IsRWWeakerOrEqual(bool kIsWrite, bool kIsAtomic) const { in IsRWWeakerOrEqual() argument
300 >= u64((kIsWrite ^ 1) | (kIsAtomic << 1)); in IsRWWeakerOrEqual()
302 (IsAtomic() == kIsAtomic && !IsWrite() >= !kIsWrite)); in IsRWWeakerOrEqual()