Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 36) 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.cc307 sigset64_t mask; in Handler() local
308 sigorset(&mask, &ucontext->uc_sigmask64, &chains[signo].action_.sa_mask); in Handler()
310 sigset_t mask; in Handler() local
311 sigorset(&mask, &ucontext->uc_sigmask, &chains[signo].action_.sa_mask); in Handler()
314 sigaddset(&mask, signo); in Handler()
318 linked_sigprocmask64(SIG_SETMASK, &mask, nullptr); in Handler()
320 linked_sigprocmask(SIG_SETMASK, &mask, nullptr); in Handler()
/art/test/564-checker-negbitwise/src/
DMain.java79 public static int $opt$noinline$notAnd(int base, int mask) { in $opt$noinline$notAnd() argument
81 return base & ~mask; in $opt$noinline$notAnd()
129 public static long $opt$noinline$notOr(long base, long mask) { in $opt$noinline$notOr() argument
131 return base | ~mask; in $opt$noinline$notOr()
176 public static int $opt$noinline$notXor(int base, int mask) { in $opt$noinline$notXor() argument
178 return base ^ ~mask; in $opt$noinline$notXor()
212 public static int $opt$noinline$notAndConstant(int mask) { in $opt$noinline$notAndConstant() argument
214 return 0xf & ~mask; in $opt$noinline$notAndConstant()
268 public static int $opt$noinline$notAndMultipleUses(int base, int mask) { in $opt$noinline$notAndMultipleUses() argument
270 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/test/099-vmdebug/src/
DMain.java254 public int mask; field in Main.ClassD
256 public ClassD(int mask) { in ClassD() argument
257 this.mask = mask; in ClassD()
262 public ClassE(int mask) { in ClassE() argument
263 super(mask); in ClassE()
278 int mask = 0; in testGetInstances() local
280 mask |= ((ClassD)instance).mask; in testGetInstances()
282 System.out.println("ClassD got " + instances[0].length + ", combined mask: " + mask); in testGetInstances()
284 mask = 0; in testGetInstances()
286 mask |= ((ClassD)instance).mask; in testGetInstances()
[all …]
/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 …]
/art/test/099-vmdebug/
Dexpected.txt26 ClassD got 3, combined mask: 13
27 ClassE got 2, combined mask: 18
29 ClassD assignable got 5, combined mask: 31
30 ClassE assignable got 2, combined mask: 18
/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.cc121 sigset_t mask; in InitializeNativeBridge() local
122 sigfillset(&mask); in InitializeNativeBridge()
125 .sc_mask = mask, in InitializeNativeBridge()
Dstack_map.cc141 BitMemoryRegion mask = dex_register_masks_.GetBitMemoryRegion(mask_index); in DecodeDexRegisterMap() local
142 if (mask.size_in_bits() <= first_dex_register) { in DecodeDexRegisterMap()
151 map_index += mask.PopCount(0, first_dex_register); in DecodeDexRegisterMap()
152 mask = mask.Subregion(first_dex_register, mask.size_in_bits() - first_dex_register); in DecodeDexRegisterMap()
156 const uint32_t end = std::min<uint32_t>(map->size(), mask.size_in_bits()); in DecodeDexRegisterMap()
160 uint32_t bits = mask.LoadBits(reg, std::min<uint32_t>(end - reg, kNumBits)); in DecodeDexRegisterMap()
Dart_method.h260 constexpr uint32_t mask = kAccFastNative | kAccNative; in IsFastNative() local
261 return (GetAccessFlags() & mask) == mask; in IsFastNative()
269 constexpr uint32_t mask = kAccCriticalNative | kAccNative; in IsCriticalNative() local
270 return (GetAccessFlags() & mask) == mask; in IsCriticalNative()
291 constexpr uint32_t mask = kAccFastInterpreterToInterpreterInvoke | kAccIntrinsic; in UseFastInterpreterToInterpreterInvoke() local
292 return (GetAccessFlags() & mask) == kAccFastInterpreterToInterpreterInvoke; in UseFastInterpreterToInterpreterInvoke()
/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_memory_region.h117 uintptr_t mask = std::numeric_limits<uintptr_t>::max() >> (kBitsPerIntPtrT - bit_length); in LoadBits() local
125 return value & mask; in LoadBits()
141 uint32_t mask = std::numeric_limits<uint32_t>::max() >> (BitSizeOf<uint32_t>() - bit_length); in StoreBits() local
144 data[index] &= ~(mask << shift); // Clear bits. in StoreBits()
148 data[index + i] &= ~(mask >> finished_bits); // Clear bits. in StoreBits()
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_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()
/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.cc147 bool HasAccessFlags(uint32_t mask) const { return (GetAccessFlags() & mask) == mask; } in HasAccessFlags()
200 inline uint32_t 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()
426 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kSet, in TEST_F() local
430 Handle<mirror::FieldVarHandle> fvh(hs.NewHandle(CreateFieldVarHandle(self, value, mask))); in TEST_F()
563 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kGet, in TEST_F() local
598 hs.NewHandle(CreateArrayElementVarHandle(self, string_array_class, mask))); in TEST_F()
733 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kGet, in TEST_F() local
753 hs.NewHandle(CreateByteArrayViewVarHandle(self, char_array_class, native_byte_order, mask))); in TEST_F()
885 int32_t mask = AccessModesBitMask(VarHandle::AccessMode::kGet, in TEST_F() local
905 CreateByteBufferViewVarHandle(self, double_array_class, native_byte_order, mask))); in TEST_F()

12