Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 50) sorted by relevance

12

/art/sigchainlib/
Dsigchain_test.cc101 sigset64_t mask; in TestSignalBlocking() local
102 sigemptyset64(&mask); in TestSignalBlocking()
103 ASSERT_EQ(0, RealSigprocmask(SIG_SETMASK, &mask, nullptr)) << strerror(errno); in TestSignalBlocking()
108 ASSERT_EQ(0, RealSigprocmask(SIG_SETMASK, nullptr, &mask)); in TestSignalBlocking()
109 ASSERT_FALSE(sigismember64(&mask, SIGSEGV)); in TestSignalBlocking()
114 sigset_t mask; in TEST_F() local
115 sigfillset(&mask); in TEST_F()
116 ASSERT_EQ(0, sigprocmask(SIG_SETMASK, &mask, nullptr)); in TEST_F()
122 sigset_t mask; in TEST_F() local
123 sigfillset(&mask); in TEST_F()
[all …]
Dsigchain.cc497 sigset64_t mask; in Handler() local
498 sigorset(&mask, &ucontext->uc_sigmask64, &chains[signo].action_.sa_mask); in Handler()
500 sigset_t mask; in Handler() local
501 sigorset(&mask, &ucontext->uc_sigmask, &chains[signo].action_.sa_mask); in Handler()
504 sigaddset(&mask, signo); in Handler()
508 linked_sigprocmask64(SIG_SETMASK, &mask, nullptr); in Handler()
510 linked_sigprocmask(SIG_SETMASK, &mask, nullptr); in Handler()
/art/test/564-checker-negbitwise/src/
DMain.java97 public static int $opt$noinline$notAnd(int base, int mask) { in $opt$noinline$notAnd() argument
98 return base & ~mask; in $opt$noinline$notAnd()
167 public static long $opt$noinline$notOr(long base, long mask) { in $opt$noinline$notOr() argument
168 return base | ~mask; in $opt$noinline$notOr()
234 public static int $opt$noinline$notXor(int base, int mask) { in $opt$noinline$notXor() argument
235 return base ^ ~mask; in $opt$noinline$notXor()
283 public static int $opt$noinline$notAndConstant(int mask) { in $opt$noinline$notAndConstant() argument
284 return 0xf & ~mask; in $opt$noinline$notAndConstant()
362 public static int $opt$noinline$notAndMultipleUses(int base, int mask) { in $opt$noinline$notAndMultipleUses() argument
363 int tmp = ~mask; in $opt$noinline$notAndMultipleUses()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DRootType.java95 final int mask; field in RootType
97 RootType(int mask) { in RootType() argument
98 this.mask = mask; in RootType()
/art/runtime/arch/arm64/
Dmemcmp16_arm64.S45 #define mask x13 macro
79 mov mask, #~0
80 lsl mask, mask, limit
81 bic data1, data1, mask
82 bic data2, data2, mask
94 mov mask, #0xFFFF
99 and data1, data1, mask
100 and data2, data2, mask
/art/test/004-SignalTest/
Dsignaltest.cc76 sigset_t mask; in signalhandler() local
77 sigemptyset(&mask); in signalhandler()
78 sigaddset(&mask, BLOCKED_SIGNAL); in signalhandler()
79 sigprocmask(SIG_UNBLOCK, &mask, nullptr); in signalhandler()
159 sigset_t mask; in Java_Main_testSignal() local
160 memset(&mask, 0, sizeof(mask)); in Java_Main_testSignal()
161 sigaddset(&mask, UNBLOCKED_SIGNAL); in Java_Main_testSignal()
162 sigprocmask(SIG_UNBLOCK, &mask, nullptr); in Java_Main_testSignal()
/art/dex2oat/linker/
Dindex_bss_mapping_encoder.h52 uint32_t mask = entry_.GetMask(index_bits_); in TryMerge() local
53 if ((mask & ~(static_cast<uint32_t>(-1) << diff)) != 0u) { in TryMerge()
58 mask = ((mask << index_bits_) >> diff) | (static_cast<uint32_t>(1u) << (32 - diff)); in TryMerge()
59 entry_.index_and_mask = mask | index; in TryMerge()
/art/test/708-jit-cache-churn/src/
DJitCacheChurnTest.java226 private void runAndJitMethods(int mask) { in runAndJitMethods() argument
227 runMask |= mask; in runAndJitMethods()
228 for (int index = 0; mask != 0; mask >>= 1, index++) { in runAndJitMethods()
229 if ((mask & 1) == 1) { in runAndJitMethods()
250 private void removeJittedMethods(int mask) { in removeJittedMethods() argument
251 mask = mask & runMask; in removeJittedMethods()
252 runMask ^= mask; in removeJittedMethods()
253 for (int index = 0; mask != 0; mask >>= 1, index++) { in removeJittedMethods()
254 if ((mask & 1) == 1) { in removeJittedMethods()
/art/libdexfile/dex/
Dtype_lookup_table.cc40 const uint32_t mask = Entry::GetMask(mask_bits); in Create() local
50 const uint32_t pos = hash & mask; in Create()
66 uint32_t tail_pos = hash & mask; in Create()
69 tail_pos = (tail_pos + entries[tail_pos].GetNextPosDelta(mask_bits)) & mask; in Create()
75 insert_pos = (insert_pos + 1) & mask; in Create()
79 entries[tail_pos].SetNextPosDelta((insert_pos - tail_pos) & mask, mask_bits); in Create()
97 uint32_t mask = Entry::GetMask(mask_bits_); in Lookup() local
98 uint32_t pos = hash & mask; in Lookup()
111 pos = (pos + entry->GetNextPosDelta(mask_bits_)) & mask; in Lookup()
126 if (((ComputeModifiedUtf8Hash(first_checked_str) ^ hash) & mask) != 0u) { in Lookup()
[all …]
Ddex_file_verifier_test.cc259 static void SetMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in SetMethodFlags() argument
264 uint8_t base1 = static_cast<uint8_t>(mask & 0x7F); in SetMethodFlags()
266 mask >>= 7; in SetMethodFlags()
268 uint8_t base2 = static_cast<uint8_t>(mask & 0x7F); in SetMethodFlags()
270 mask >>= 7; in SetMethodFlags()
272 uint8_t base3 = static_cast<uint8_t>(mask & 0x7F); in SetMethodFlags()
283 static void ApplyMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in ApplyMaskToMethodFlags() argument
285 value &= mask; in ApplyMaskToMethodFlags()
290 static void OrMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in OrMaskToMethodFlags() argument
292 value |= mask; in OrMaskToMethodFlags()
[all …]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DDexRandomAccessFile.java300 long mask = alignment - 1; in alignForwards() local
301 if ((offset & mask) != 0) { in alignForwards()
302 int extra = alignment - (int) (offset & mask); in alignForwards()
313 long mask = alignment - 1; in alignBackwards() local
314 if ((offset & mask) != 0) { in alignBackwards()
315 offset &= (~mask); in alignBackwards()
/art/runtime/gc/collector/
Dmark_compact-inl.h79 uintptr_t mask = Bitmap::BitIndexToMask(begin_bit_idx); in SetLiveWords() local
81 mask = ~(mask - 1); in SetLiveWords()
83 *begin_bm_address |= mask; in SetLiveWords()
84 mask = ~0; in SetLiveWords()
94 *end_bm_address |= mask & (end_mask | (end_mask - 1)); in SetLiveWords()
123 uintptr_t mask = Bitmap::BitIndexToMask(end_bit_idx); in VisitLiveStrides() local
124 word &= mask | (mask - 1); in VisitLiveStrides()
349 const uintptr_t mask = Bitmap::BitIndexToMask(bit_idx); in CountLiveWordsUpto() local
350 DCHECK_NE(word & mask, 0u) in CountLiveWordsUpto()
355 << " mask: 0x" << mask << std::dec; in CountLiveWordsUpto()
[all …]
/art/runtime/
Dindirect_reference_table.h222 constexpr uintptr_t mask = enum_cast<uintptr_t>(kGlobal); in GetGlobalOrWeakGlobalMask() local
223 static_assert(IsPowerOfTwo(mask)); in GetGlobalOrWeakGlobalMask()
224 static_assert((mask & kJniTransition) == 0u); in GetGlobalOrWeakGlobalMask()
225 static_assert((mask & kLocal) == 0u); in GetGlobalOrWeakGlobalMask()
226 static_assert((mask & kGlobal) != 0u); in GetGlobalOrWeakGlobalMask()
227 static_assert((mask & kWeakGlobal) != 0u); in GetGlobalOrWeakGlobalMask()
228 return mask; in GetGlobalOrWeakGlobalMask()
Dnative_bridge_art_interface.cc130 sigset_t mask; in InitializeNativeBridge() local
131 sigfillset(&mask); in InitializeNativeBridge()
134 .sc_mask = mask, in InitializeNativeBridge()
Dfault_handler.cc113 sigset_t mask; in Init() local
114 sigfillset(&mask); in Init()
115 sigdelset(&mask, SIGABRT); in Init()
116 sigdelset(&mask, SIGBUS); in Init()
117 sigdelset(&mask, SIGFPE); in Init()
118 sigdelset(&mask, SIGILL); in Init()
119 sigdelset(&mask, SIGSEGV); in Init()
123 .sc_mask = mask, in Init()
Dart_method.h451 constexpr uint32_t mask = kAccFastNative | kAccNative;
452 return (access_flags & mask) == mask;
464 constexpr uint32_t mask = kAccCriticalNative | kAccNative;
465 return (access_flags & mask) == mask;
542 constexpr uint32_t mask = kAccPreviouslyWarm | kAccIntrinsic;
543 return (access_flags & mask) != 0u;
582 constexpr uint32_t mask = kAccNative | kAccNterpEntryPointFastPathFlag;
583 return (access_flags & mask) == kAccNterpEntryPointFastPathFlag;
/art/runtime/gc/accounting/
Dspace_bitmap-inl.h39 const uintptr_t mask = OffsetToMask(offset); in AtomicTestAndSet() local
46 if ((old_word & mask) != 0) { in AtomicTestAndSet()
50 } while (!atomic_entry->CompareAndSetWeakRelaxed(old_word, old_word | mask)); in AtomicTestAndSet()
239 const uintptr_t mask = OffsetToMask(offset); in Modify() local
249 if ((old_word & mask) == 0) { in Modify()
250 atomic_entry->store(old_word | mask, std::memory_order_relaxed); in Modify()
253 atomic_entry->store(old_word & ~mask, std::memory_order_relaxed); in Modify()
256 return (old_word & mask) != 0; in Modify()
/art/libartbase/base/
Dbit_memory_region_test.cc79 uint32_t mask = 0; in TEST() local
81 const uint32_t value = 0xDEADBEEF & mask; in TEST()
96 mask = (mask << 1) | 1; in TEST()
Dbit_utils.h360 int mask = BitSizeOf<T>() - 1; in Rot() local
361 int unsigned_right_shift = left ? (-distance & mask) : (distance & mask); in Rot()
362 int signed_left_shift = left ? (distance & mask) : (-distance & mask); in Rot()
430 const auto mask = MaskLeastSignificant<T>(width); in BitFieldClear() local
432 return static_cast<T>(val & ~(mask << lsb)); in BitFieldClear()
Dhiddenapi_flags.h57 constexpr bool MatchesBitMask(uint32_t val, uint32_t mask) { return (val & mask) == val; } in MatchesBitMask() argument
61 constexpr bool MatchesBitMask(T val, uint32_t mask) { return MatchesBitMask(ToUint(val), mask); } in MatchesBitMask() argument
/art/runtime/oat/
Dstack_map.cc122 BitMemoryRegion mask = dex_register_masks_.GetBitMemoryRegion(mask_index); in DecodeDexRegisterMap() local
123 if (mask.size_in_bits() <= first_dex_register) { in DecodeDexRegisterMap()
132 map_index += mask.PopCount(0, first_dex_register); in DecodeDexRegisterMap()
133 mask = mask.Subregion(first_dex_register, mask.size_in_bits() - first_dex_register); in DecodeDexRegisterMap()
137 const uint32_t end = std::min<uint32_t>(map->size(), mask.size_in_bits()); in DecodeDexRegisterMap()
141 uint32_t bits = mask.LoadBits(reg, std::min<uint32_t>(end - reg, kNumBits)); in DecodeDexRegisterMap()
/art/libartservice/service/java/com/android/server/art/model/
DDexoptParams.java76 public Builder setFlags(@DexoptFlags int value, @DexoptFlags int mask) { in setFlags() argument
77 mParams.mFlags = (mParams.mFlags & ~mask) | (value & mask); in setFlags()
/art/test/099-vmdebug/src/
DMain.java344 public int mask; field in Main.ClassD
346 public ClassD(int mask) { in ClassD() argument
347 this.mask = mask; in ClassD()
352 public ClassE(int mask) { in ClassE() argument
353 super(mask); in ClassE()
/art/runtime/verifier/
Dregister_line-inl.h203 uint32_t mask = 1 << depth; in ClearRegToLockDepth() local
205 if ((pair.second & mask) != 0) { in ClearRegToLockDepth()
207 pair.second ^= mask; in ClearRegToLockDepth()
/art/compiler/optimizing/
Dregister_allocator.cc35 uint32_t mask = 0u; in GetBlockedRegistersForCall() local
38 mask |= 1u << reg; in GetBlockedRegistersForCall()
41 return mask; in GetBlockedRegistersForCall()

12