Home
last modified time | relevance | path

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

12

/art/sigchainlib/
Dsigchain_test.cc91 sigset64_t mask; in TestSignalBlocking() local
92 sigemptyset64(&mask); in TestSignalBlocking()
93 ASSERT_EQ(0, RealSigprocmask(SIG_SETMASK, &mask, nullptr)) << strerror(errno); in TestSignalBlocking()
98 ASSERT_EQ(0, RealSigprocmask(SIG_SETMASK, nullptr, &mask)); in TestSignalBlocking()
99 ASSERT_FALSE(sigismember64(&mask, SIGSEGV)); in TestSignalBlocking()
104 sigset_t mask; in TEST_F() local
105 sigfillset(&mask); in TEST_F()
106 ASSERT_EQ(0, sigprocmask(SIG_SETMASK, &mask, nullptr)); in TEST_F()
112 sigset_t mask; in TEST_F() local
113 sigfillset(&mask); in TEST_F()
[all …]
Dsigchain.cc374 sigset64_t mask; in Handler() local
375 sigorset(&mask, &ucontext->uc_sigmask64, &chains[signo].action_.sa_mask); in Handler()
377 sigset_t mask; in Handler() local
378 sigorset(&mask, &ucontext->uc_sigmask, &chains[signo].action_.sa_mask); in Handler()
381 sigaddset(&mask, signo); in Handler()
385 linked_sigprocmask64(SIG_SETMASK, &mask, nullptr); in Handler()
387 linked_sigprocmask(SIG_SETMASK, &mask, nullptr); in Handler()
/art/test/564-checker-negbitwise/src/
DMain.java76 public static int $opt$noinline$notAnd(int base, int mask) { in $opt$noinline$notAnd() argument
77 return base & ~mask; in $opt$noinline$notAnd()
125 public static long $opt$noinline$notOr(long base, long mask) { in $opt$noinline$notOr() argument
126 return base | ~mask; in $opt$noinline$notOr()
171 public static int $opt$noinline$notXor(int base, int mask) { in $opt$noinline$notXor() argument
172 return base ^ ~mask; in $opt$noinline$notXor()
206 public static int $opt$noinline$notAndConstant(int mask) { in $opt$noinline$notAndConstant() argument
207 return 0xf & ~mask; in $opt$noinline$notAndConstant()
261 public static int $opt$noinline$notAndMultipleUses(int base, int mask) { in $opt$noinline$notAndMultipleUses() argument
262 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()
DAhatInstance.java237 mRootTypes |= type.mask; in addRootType()
253 if ((mRootTypes & type.mask) != 0) { in getRootTypes()
/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.cc74 sigset_t mask; in signalhandler() local
75 sigemptyset(&mask); in signalhandler()
76 sigaddset(&mask, BLOCKED_SIGNAL); in signalhandler()
77 sigprocmask(SIG_UNBLOCK, &mask, nullptr); in signalhandler()
152 sigset_t mask; in Java_Main_testSignal() local
153 memset(&mask, 0, sizeof(mask)); in Java_Main_testSignal()
154 sigaddset(&mask, UNBLOCKED_SIGNAL); in Java_Main_testSignal()
155 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/libdexfile/dex/
Dtype_lookup_table.cc44 const uint32_t mask = Entry::GetMask(mask_bits); in Create() local
54 const uint32_t pos = hash & mask; in Create()
70 uint32_t tail_pos = hash & mask; in Create()
73 tail_pos = (tail_pos + entries[tail_pos].GetNextPosDelta(mask_bits)) & mask; in Create()
79 insert_pos = (insert_pos + 1) & mask; in Create()
83 entries[tail_pos].SetNextPosDelta((insert_pos - tail_pos) & mask, mask_bits); in Create()
101 uint32_t mask = Entry::GetMask(mask_bits_); in Lookup() local
102 uint32_t pos = hash & mask; in Lookup()
115 pos = (pos + entry->GetNextPosDelta(mask_bits_)) & mask; in Lookup()
130 if (((ComputeModifiedUtf8Hash(first_checked_str) ^ hash) & mask) != 0u) { in Lookup()
[all …]
Ddex_file_verifier_test.cc266 static void SetMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in SetMethodFlags() argument
271 uint8_t base1 = static_cast<uint8_t>(mask & 0x7F); in SetMethodFlags()
273 mask >>= 7; in SetMethodFlags()
275 uint8_t base2 = static_cast<uint8_t>(mask & 0x7F); in SetMethodFlags()
277 mask >>= 7; in SetMethodFlags()
279 uint8_t base3 = static_cast<uint8_t>(mask & 0x7F); in SetMethodFlags()
290 static void ApplyMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in ApplyMaskToMethodFlags() argument
292 value &= mask; in ApplyMaskToMethodFlags()
297 static void OrMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in OrMaskToMethodFlags() argument
299 value |= mask; in OrMaskToMethodFlags()
[all …]
/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/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/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()
193 const uintptr_t mask = OffsetToMask(offset); in Modify() local
203 if ((old_word & mask) == 0) { in Modify()
204 atomic_entry->store(old_word | mask, std::memory_order_relaxed); in Modify()
207 atomic_entry->store(old_word & ~mask, std::memory_order_relaxed); in Modify()
210 return (old_word & mask) != 0; in Modify()
/art/runtime/
Dfault_handler.cc135 sigset_t mask; in Init() local
136 sigfillset(&mask); in Init()
137 sigdelset(&mask, SIGABRT); in Init()
138 sigdelset(&mask, SIGBUS); in Init()
139 sigdelset(&mask, SIGFPE); in Init()
140 sigdelset(&mask, SIGILL); in Init()
141 sigdelset(&mask, SIGSEGV); in Init()
145 .sc_mask = mask, in Init()
Dnative_bridge_art_interface.cc130 sigset_t mask; in InitializeNativeBridge() local
131 sigfillset(&mask); in InitializeNativeBridge()
134 .sc_mask = mask, in InitializeNativeBridge()
Dstack_map.cc175 BitMemoryRegion mask = dex_register_masks_.GetBitMemoryRegion(mask_index); in DecodeDexRegisterMap() local
176 if (mask.size_in_bits() <= first_dex_register) { in DecodeDexRegisterMap()
185 map_index += mask.PopCount(0, first_dex_register); in DecodeDexRegisterMap()
186 mask = mask.Subregion(first_dex_register, mask.size_in_bits() - first_dex_register); in DecodeDexRegisterMap()
190 const uint32_t end = std::min<uint32_t>(map->size(), mask.size_in_bits()); in DecodeDexRegisterMap()
194 uint32_t bits = mask.LoadBits(reg, std::min<uint32_t>(end - reg, kNumBits)); in DecodeDexRegisterMap()
Dart_method.h299 constexpr uint32_t mask = kAccFastNative | kAccNative; in IsFastNative() local
300 return (GetAccessFlags() & mask) == mask; in IsFastNative()
308 constexpr uint32_t mask = kAccCriticalNative | kAccNative; in IsCriticalNative() local
309 return (GetAccessFlags() & mask) == mask; in IsCriticalNative()
331 constexpr uint32_t mask = kAccFastInterpreterToInterpreterInvoke | kAccIntrinsic; in UseFastInterpreterToInterpreterInvoke() local
332 return (GetAccessFlags() & mask) == kAccFastInterpreterToInterpreterInvoke; in UseFastInterpreterToInterpreterInvoke()
365 constexpr uint32_t mask = kAccPreviouslyWarm | kAccIntrinsic; in PreviouslyWarm() local
366 return (GetAccessFlags() & mask) != 0u; in PreviouslyWarm()
396 constexpr uint32_t mask = kAccNative | kAccNterpEntryPointFastPathFlag; in HasNterpEntryPointFastPathFlag() local
397 return (GetAccessFlags() & mask) == kAccNterpEntryPointFastPathFlag; in HasNterpEntryPointFastPathFlag()
/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.h351 int mask = BitSizeOf<T>() - 1; in Rot() local
352 int unsigned_right_shift = left ? (-distance & mask) : (distance & mask); in Rot()
353 int signed_left_shift = left ? (distance & mask) : (-distance & mask); in Rot()
421 const auto mask = MaskLeastSignificant<T>(width); in BitFieldClear() local
423 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
Dbit_memory_region.h149 uint32_t mask = std::numeric_limits<uint32_t>::max() >> (BitSizeOf<uint32_t>() - bit_length); in StoreBits() local
152 data_[index] &= ~(mask << shift); // Clear bits. in StoreBits()
156 data_[index + i] &= ~(mask >> finished_bits); // Clear bits. in StoreBits()
/art/test/099-vmdebug/src/
DMain.java253 public int mask; field in Main.ClassD
255 public ClassD(int mask) { in ClassD() argument
256 this.mask = mask; in ClassD()
261 public ClassE(int mask) { in ClassE() argument
262 super(mask); in ClassE()
/art/runtime/verifier/
Dregister_line-inl.h221 uint32_t mask = 1 << depth; in ClearRegToLockDepth() local
223 if ((pair.second & mask) != 0) { in ClearRegToLockDepth()
225 pair.second ^= mask; in ClearRegToLockDepth()
/art/tools/hiddenapi/
Dhiddenapi.cc160 bool HasAccessFlags(uint32_t mask) const { return (GetAccessFlags() & mask) == mask; } in HasAccessFlags()
213 inline bool HasAccessFlags(uint32_t mask) const { return (GetAccessFlags() & mask) == mask; } in HasAccessFlags()
/art/runtime/mirror/
Dvar_handle_test.cc282 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kGet, in TEST_F() local
286 Handle<mirror::FieldVarHandle> fvh(hs.NewHandle(CreateFieldVarHandle(self, value, mask))); in TEST_F()
485 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kSet, in TEST_F() local
489 Handle<mirror::FieldVarHandle> fvh(hs.NewHandle(CreateFieldVarHandle(self, value, mask))); in TEST_F()
622 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kGet, in TEST_F() local
657 hs.NewHandle(CreateArrayElementVarHandle(self, string_array_class, mask))); in TEST_F()
792 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kGet, in TEST_F() local
812 hs.NewHandle(CreateByteArrayViewVarHandle(self, char_array_class, native_byte_order, mask))); in TEST_F()
944 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kGet, in TEST_F() local
964 CreateByteBufferViewVarHandle(self, double_array_class, native_byte_order, mask))); in TEST_F()

12