Home
last modified time | relevance | path

Searched refs:num_bits (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Bluetooth/system/gd/packet/
Dendian_inserter.h71 void insert(T value, BitInserter& it, size_t num_bits) const { in insert() argument
72 assert(num_bits <= (sizeof(T) * 8)); in insert()
74 for (size_t i = 0; i < num_bits / 8; i++) { in insert()
78 …it.insert_byte(static_cast<uint8_t>(static_cast<uint64_t>(value) >> (((num_bits / 8) - i - 1) * 8)… in insert()
81 if (num_bits % 8) { in insert()
82 …ert_bits(static_cast<uint8_t>(static_cast<uint64_t>(value) >> ((num_bits / 8) * 8)), num_bits % 8); in insert()
Dbit_inserter.cc31 void BitInserter::insert_bits(uint8_t byte, size_t num_bits) { in insert_bits() argument
32 size_t total_bits = num_bits + num_saved_bits_; in insert_bits()
Dfragmenting_inserter.cc30 void FragmentingInserter::insert_bits(uint8_t byte, size_t num_bits) { in insert_bits() argument
32 size_t total_bits = num_bits + num_saved_bits_; in insert_bits()
Dbit_inserter.h34 virtual void insert_bits(uint8_t byte, size_t num_bits);
Dfragmenting_inserter.h34 void insert_bits(uint8_t byte, size_t num_bits) override;
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
Dlsh_projection_float16.mod.py19 num_bits = 2 variable
23 hhash = Parameter("hash", "TENSOR_FLOAT16", "{%d, %d}" % (num_hash, num_bits),
25 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
28 output = Output("output", "TENSOR_INT32", "{%d}" % (num_hash * num_bits))
Dlsh_projection_deprecated.mod.py19 num_bits = 2 variable
24 "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits),
26 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
Dlsh_projection_4_relaxed.mod.py19 num_bits = 2 variable
24 "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits),
26 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
Dlsh_projection_3_relaxed.mod.py19 num_bits = 2 variable
24 "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits),
26 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/
Dlsh_projection.mod.py19 num_bits = 2 variable
23 hhash = Parameter("hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits),
25 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
28 output = Output("output", "TENSOR_INT32", "{%d}" % (num_hash * num_bits))
Dlsh_projection_weights_as_inputs.mod.py19 num_bits = 2 variable
23 hhash = Input("hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits))
24 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
27 output = Output("output", "TENSOR_INT32", "{%d}" % (num_hash * num_bits))
Dlsh_projection_2.mod.py19 num_bits = 2 variable
23 hhash = Parameter("hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits),
25 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/
Dlsh_projection_relaxed.mod.py19 num_bits = 2 variable
24 "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits),
26 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
29 output = Output("output", "TENSOR_INT32", "{%d}" % (num_hash * num_bits))
Dlsh_projection_weights_as_inputs_relaxed.mod.py19 num_bits = 2 variable
23 hhash = Input("hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits))
24 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
27 output = Output("output", "TENSOR_INT32", "{%d}" % (num_hash * num_bits))
Dlsh_projection_2_relaxed.mod.py19 num_bits = 2 variable
24 "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits),
26 lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits))
/packages/modules/NeuralNetworks/common/cpu_operations/
DLSHProjection.cpp129 int num_bits = SizeOfDimension(hash, 1); in SparseLshProjection() local
132 for (int j = 0; j < num_bits; j++) { in SparseLshProjection()
133 T seed = reinterpret_cast<T*>(hash->buffer)[i * num_bits + j]; in SparseLshProjection()
140 *out_buf++ = hash_signature + i * (1 << num_bits); in SparseLshProjection()
149 int num_bits = SizeOfDimension(hash, 1); in DenseLshProjection() local
151 for (int j = 0; j < num_bits; j++) { in DenseLshProjection()
152 T seed = reinterpret_cast<T*>(hash->buffer)[i * num_bits + j]; in DenseLshProjection()
/packages/modules/Virtualization/libs/apkverify/src/
Dv4.rs307 let num_bits = std::mem::size_of::<usize>() * 8; in log2() localVariable
308 (num_bits as u32 - n.leading_zeros() - 1) as u8 in log2()