Home
last modified time | relevance | path

Searched refs:numBits (Results 1 – 6 of 6) sorted by relevance

/hardware/google/gfxstream/host/vulkan/emulated_textures/shaders/
DAstcDecompressor.glsl171 // numBits: number of bits to extract. (0-32). If numBits is 0, this returns 0.
172 // Result is undefined if offset >= 128 or offset + numBits > 128
173 uint extractBits(uvec4 data, uint offset, uint numBits) {
174 if (numBits == 0) return 0;
177 const uint j = 3 - (offset + numBits - 1) / 32;
181 return bitfieldExtract(data[i], int(start), int(numBits));
185 uint highBits = bitfieldExtract(data[j], 0, int(numBits - numLowBits));
243 // numBits: how many bits are used to encode the LSB (0-6)
246 uint decodeTrit(uvec4 data, uint offset, uint numBits, uint i) {
247 const int inumBits = int(numBits);
[all …]
DAstcNew.comp171 // numBits: number of bits to extract. (0-32). If numBits is 0, this returns 0.
172 // Result is undefined if offset >= 128 or offset + numBits > 128
173 uint extractBits(uvec4 data, uint offset, uint numBits) {
174 if (numBits == 0) return 0;
177 const uint j = 3 - (offset + numBits - 1) / 32;
181 return bitfieldExtract(data[i], int(start), int(numBits));
185 uint highBits = bitfieldExtract(data[j], 0, int(numBits - numLowBits));
243 // numBits: how many bits are used to encode the LSB (0-6)
246 uint decodeTrit(uvec4 data, uint offset, uint numBits, uint i) {
247 const int inumBits = int(numBits);
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/obd2frame/src/
DObd2SensorStore.cpp37 Obd2SensorStore::BitmaskInVector::BitmaskInVector(size_t numBits) { in BitmaskInVector() argument
38 mNumBits = numBits; in BitmaskInVector()
39 resize(numBits); in BitmaskInVector()
42 void Obd2SensorStore::BitmaskInVector::resize(size_t numBits) { in resize() argument
43 mNumBits = numBits; in resize()
44 mStorage = std::vector<uint8_t>((numBits + 7) / 8, 0); in resize()
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DObd2SensorStore.cpp28 Obd2SensorStore::BitmaskInVector::BitmaskInVector(size_t numBits) { in BitmaskInVector() argument
29 resize(numBits); in BitmaskInVector()
32 void Obd2SensorStore::BitmaskInVector::resize(size_t numBits) { in resize() argument
33 mStorage = std::vector<uint8_t>((numBits + 7) / 8, 0); in resize()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DObd2SensorStore.h62 BitmaskInVector(size_t numBits = 0);
63 void resize(size_t numBits);
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/obd2frame/include/
DObd2SensorStore.h77 explicit BitmaskInVector(size_t numBits = 0);
78 void resize(size_t numBits);