Home
last modified time | relevance | path

Searched refs:bit_mask (Results 1 – 24 of 24) sorted by relevance

/external/autotest/client/common_lib/
Dsmogcheck_pca9555.py121 bit_mask = 0
125 bit_mask = bit_value
127 bit_mask |= 0x20
129 bit_mask |= 0x10
131 return bit_mask
195 bit_mask = self._computeLEDmask(bit_value, failure, warning)
196 write_byte = reset_low6 ^ bit_mask
199 byte_read, reset_low6, bit_mask, write_byte)
/external/e2fsprogs/ext2ed/
Dinodebitmap_com.c137 unsigned char bit_mask=1; in allocate_inode() local
142 bit_mask*=2; in allocate_inode()
143 type_data.u.buffer [byte_offset] |= bit_mask; in allocate_inode()
149 unsigned char bit_mask=1; in deallocate_inode() local
154 bit_mask*=2; in deallocate_inode()
155 bit_mask^=0xff; in deallocate_inode()
157 type_data.u.buffer [byte_offset] &= bit_mask; in deallocate_inode()
Dblockbitmap_com.c177 unsigned char bit_mask=1; in allocate_block() local
183 bit_mask*=2; /* Generate the or mask - 1 at the right place */ in allocate_block()
184 type_data.u.buffer [byte_offset] |= bit_mask; /* And apply it */ in allocate_block()
192 unsigned char bit_mask=1; in deallocate_block() local
197 bit_mask*=2; in deallocate_block()
198 bit_mask^=0xff; in deallocate_block()
200 type_data.u.buffer [byte_offset] &= bit_mask; in deallocate_block()
/external/cpuinfo/src/x86/linux/
Dinit.c14 static inline uint32_t bit_mask(uint32_t bits) { in bit_mask() function
63 ~(bit_mask(processor->topology.thread_bits_length) << processor->topology.thread_bits_offset); in cpuinfo_x86_count_objects()
65 …core_apic_mask & ~(bit_mask(processor->topology.core_bits_length) << processor->topology.core_bits… in cpuinfo_x86_count_objects()
66 const uint32_t llc_apic_mask = ~bit_mask(llc_apic_bits); in cpuinfo_x86_count_objects()
98 const uint32_t l1i_id = apic_id & ~bit_mask(processor->cache.l1i.apic_bits); in cpuinfo_x86_count_objects()
105 const uint32_t l1d_id = apic_id & ~bit_mask(processor->cache.l1d.apic_bits); in cpuinfo_x86_count_objects()
112 const uint32_t l2_id = apic_id & ~bit_mask(processor->cache.l2.apic_bits); in cpuinfo_x86_count_objects()
119 const uint32_t l3_id = apic_id & ~bit_mask(processor->cache.l3.apic_bits); in cpuinfo_x86_count_objects()
126 const uint32_t l4_id = apic_id & ~bit_mask(processor->cache.l4.apic_bits); in cpuinfo_x86_count_objects()
343 …~(bit_mask(x86_processor.topology.thread_bits_length) << x86_processor.topology.thread_bits_offset… in cpuinfo_x86_linux_init()
[all …]
/external/cpuinfo/src/x86/windows/
Dinit.c20 static inline uint32_t bit_mask(uint32_t bits) { in bit_mask() function
56 const uint32_t l1i_id = apic_id & ~bit_mask(x86_processor->cache.l1i.apic_bits); in cpuinfo_x86_count_caches()
63 const uint32_t l1d_id = apic_id & ~bit_mask(x86_processor->cache.l1d.apic_bits); in cpuinfo_x86_count_caches()
70 const uint32_t l2_id = apic_id & ~bit_mask(x86_processor->cache.l2.apic_bits); in cpuinfo_x86_count_caches()
77 const uint32_t l3_id = apic_id & ~bit_mask(x86_processor->cache.l3.apic_bits); in cpuinfo_x86_count_caches()
84 const uint32_t l4_id = apic_id & ~bit_mask(x86_processor->cache.l4.apic_bits); in cpuinfo_x86_count_caches()
128 const uint32_t thread_bits_mask = bit_mask(x86_processor.topology.thread_bits_length); in cpuinfo_x86_windows_init()
129 const uint32_t core_bits_mask = bit_mask(x86_processor.topology.core_bits_length); in cpuinfo_x86_windows_init()
439 const uint32_t l1i_id = apic_id & ~bit_mask(x86_processor.cache.l1i.apic_bits); in cpuinfo_x86_windows_init()
464 const uint32_t l1d_id = apic_id & ~bit_mask(x86_processor.cache.l1d.apic_bits); in cpuinfo_x86_windows_init()
[all …]
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dquantize.h118 uint32 bit_mask = 0x00000000;
120 bit_mask <<= kBitsOfByte;
121 bit_mask |= 0x000000ff;
135 And(shifted_input, xla::ConstantR0<uint32>(builder, bit_mask));
/external/llvm-project/lldb/source/Plugins/Process/Windows/Common/
DNativeRegisterContextWindows_WoW64.cpp472 uint32_t bit_mask = 1 << wp_index; in ClearHardwareWatchpoint() local
473 uint32_t status_bits = reg_value.GetAsUInt32() & ~bit_mask; in ClearHardwareWatchpoint()
486 bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index)); in ClearHardwareWatchpoint()
487 uint32_t control_bits = reg_value.GetAsUInt32() & ~bit_mask; in ClearHardwareWatchpoint()
570 uint32_t bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index)); in ApplyHardwareBreakpoint() local
572 uint32_t control_bits = reg_value.GetAsUInt32() & ~bit_mask; in ApplyHardwareBreakpoint()
DNativeRegisterContextWindows_i386.cpp482 uint32_t bit_mask = 1 << wp_index; in ClearHardwareWatchpoint() local
483 uint32_t status_bits = reg_value.GetAsUInt32() & ~bit_mask; in ClearHardwareWatchpoint()
496 bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index)); in ClearHardwareWatchpoint()
497 uint32_t control_bits = reg_value.GetAsUInt32() & ~bit_mask; in ClearHardwareWatchpoint()
580 uint32_t bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index)); in ApplyHardwareBreakpoint() local
582 uint32_t control_bits = reg_value.GetAsUInt32() & ~bit_mask; in ApplyHardwareBreakpoint()
DNativeRegisterContextWindows_x86_64.cpp686 uint64_t bit_mask = 1ULL << wp_index; in ClearHardwareWatchpoint() local
687 uint64_t status_bits = reg_value.GetAsUInt64() & ~bit_mask; in ClearHardwareWatchpoint()
700 bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index)); in ClearHardwareWatchpoint()
701 uint64_t control_bits = reg_value.GetAsUInt64() & ~bit_mask; in ClearHardwareWatchpoint()
785 uint64_t bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index)); in ApplyHardwareBreakpoint() local
787 uint64_t control_bits = reg_value.GetAsUInt64() & ~bit_mask; in ApplyHardwareBreakpoint()
/external/python/cpython2/Demo/classes/
Dbitvec.py61 bit_mask = 1L
66 value = value | bit_mask
67 bit_mask = bit_mask << 1
/external/tensorflow/tensorflow/core/kernels/
Dlookup_table_op.cc430 const int64 bit_mask = num_buckets_ - 1; in Find() local
444 int64 bucket_index = key_hash & bit_mask; in Find()
464 (bucket_index + num_probes) & bit_mask; // quadratic probing in Find()
606 const int64 bit_mask = num_buckets_ - 1; in DoInsert() local
625 int64 bucket_index = key_hash & bit_mask; in DoInsert()
651 (bucket_index + num_probes) & bit_mask; // quadratic probing in DoInsert()
675 const int64 bit_mask = num_buckets_ - 1; in DoRemove() local
688 int64 bucket_index = key_hash & bit_mask; in DoRemove()
704 (bucket_index + num_probes) & bit_mask; // quadratic probing in DoRemove()
/external/llvm-project/llvm/test/DebugInfo/X86/
Ddbg-value-transfer-order.ll9 ; unsigned bit_mask = 1U << bit_offset;
11 ; cell ^= bit_mask + page_start_[slot];
129 !41 = !DILocalVariable(name: "bit_mask", scope: !40, file: !1, line: 8, type: !11)
/external/webrtc/logging/rtc_event_log/encoder/
Ddelta_encoding.cc76 uint64_t UnsignedDelta(uint64_t previous, uint64_t current, uint64_t bit_mask) { in UnsignedDelta() argument
77 return (current - previous) & bit_mask; in UnsignedDelta()
386 const uint64_t bit_mask = MaxUnsignedValueOfBitWidth(bit_width); in CalculateMinAndMaxDeltas() local
408 const uint64_t forward_delta = UnsignedDelta(*prev, current, bit_mask); in CalculateMinAndMaxDeltas()
409 const uint64_t backward_delta = UnsignedDelta(current, *prev, bit_mask); in CalculateMinAndMaxDeltas()
/external/cpuinfo/src/x86/mach/
Dinit.c16 static inline uint32_t bit_mask(uint32_t bits) { in bit_mask() function
105 const uint32_t thread_bits_mask = bit_mask(x86_processor.topology.thread_bits_length); in cpuinfo_x86_mach_init()
106 const uint32_t core_bits_mask = bit_mask(x86_processor.topology.core_bits_length); in cpuinfo_x86_mach_init()
/external/OpenCL-CTS/test_conformance/subgroups/
Dtest_subgroup_ballot.cpp213 int bit_mask = 1 << take_shift; in chk() local
216 (mx[wg_offset + wi_id].s0 & bit_mask) > 0 in chk()
220 (mx[wg_offset + wi_id].s1 & bit_mask) > 0 in chk()
224 (mx[wg_offset + wi_id].s2 & bit_mask) > 0 in chk()
228 (mx[wg_offset + wi_id].s3 & bit_mask) > 0 in chk()
/external/pigweed/pw_cpu_exception_cortex_m/py/pw_cpu_exception_cortex_m/
Dexception_analyzer.py36 if self._cpu_state.cfsr & bit_field.bit_mask:
/external/libhevc/decoder/
Dihevcd_process_slice.c118 WORD32 bit_mask = (1 << bit_pos); in ihevcd_proc_map_check() local
145 status = *pu1_buf & bit_mask; in ihevcd_proc_map_check()
160 status = *pu1_buf & bit_mask; in ihevcd_proc_map_check()
169 status = *pu1_buf & bit_mask; in ihevcd_proc_map_check()
201 WORD32 bit_mask = (1 << bit_pos); in ihevcd_proc_map_update() local
214 *pu1_buf = *pu1_buf | bit_mask; in ihevcd_proc_map_update()
/external/webp/src/dsp/
Dlossless.c351 const uint32_t bit_mask = (1 << bits_per_pixel) - 1; \
361 *dst++ = GET_VALUE(color_map[packed_pixels & bit_mask]); \
/external/tensorflow/tensorflow/core/kernels/image/
Dnon_max_suppression_op.cu.cc107 __device__ EIGEN_STRONG_INLINE bool CheckBit(T* bit_mask, int bit) { in CheckBit() argument
111 return (bit_mask[bin] >> (bit & kRemainderMask)) & 1; in CheckBit()
/external/mesa3d/src/compiler/nir/
Dnir_serialize.c1241 unsigned bit_mask = u_bit_consecutive(0, bit_size); in read_intrinsic() local
1245 bit_mask; in read_intrinsic()
/external/llvm-project/clang/test/Analysis/
Dmisc-ps.m1295 static void test(unsigned int bit_mask)
1301 switch ((0x01 << bit_index) & bit_mask) {
/external/clang/test/Analysis/
Dmisc-ps.m1295 static void test(unsigned int bit_mask)
1301 switch ((0x01 << bit_index) & bit_mask) {
/external/mesa3d/src/intel/compiler/
Dbrw_fs.cpp1074 bit_mask(unsigned n) in bit_mask() function
1076 return (n >= CHAR_BIT * sizeof(bit_mask(n)) ? ~0u : (1u << n) - 1); in bit_mask()
1085 return bit_mask(end) & ~bit_mask(start); in flag_mask()
/external/cpuinfo/test/dmesg/
Dgalaxy-s7-us.log1491 [ 1.490842] [2: kworker/2:0: 17] qusb_phy_get_tune2_param(): bit_mask:15 efuse based tune2…