Searched refs:shift (Results 1 – 13 of 13) sorted by relevance
/system/netd/libnetdutils/include/netdutils/ |
D | Math.h | 27 inline constexpr const T mask(const int shift) { in mask() argument 28 return (1 << shift) - 1; in mask() 33 inline constexpr const T align(const T& x, const int shift) { in align() argument 34 return (x + mask<T>(shift)) & ~mask<T>(shift); in align()
|
/system/teeui/libteeui/example/ |
D | example_utils.cpp | 27 uint32_t alfaCombineChannel(uint32_t shift, double alfa, uint32_t a, uint32_t b) { in alfaCombineChannel() argument 28 a >>= shift; in alfaCombineChannel() 30 b >>= shift; in alfaCombineChannel() 35 if (result > 255) return 255 << shift; in alfaCombineChannel() 36 return result << shift; in alfaCombineChannel()
|
D | example_utils.h | 37 uint32_t alfaCombineChannel(uint32_t shift, double alfa, uint32_t a, uint32_t b);
|
/system/unwinding/libunwindstack/ |
D | DwarfMemory.cpp | 49 uint64_t shift = 0; in ReadULEB128() local 55 cur_value += static_cast<uint64_t>(byte & 0x7f) << shift; in ReadULEB128() 56 shift += 7; in ReadULEB128() 64 uint64_t shift = 0; in ReadSLEB128() local 70 cur_value += static_cast<uint64_t>(byte & 0x7f) << shift; in ReadSLEB128() 71 shift += 7; in ReadSLEB128() 75 cur_value |= static_cast<uint64_t>(-1) << shift; in ReadSLEB128()
|
D | ArmExidx.cpp | 445 uint32_t shift = 0; in DecodePrefix_10_11_0010() local 452 result |= (byte & 0x7f) << shift; in DecodePrefix_10_11_0010() 453 shift += 7; in DecodePrefix_10_11_0010()
|
/system/chre/apps/test/chqts/src/shared/ |
D | nano_string.cc | 78 for (size_t i = 0, shift = 28; i < 8; i++, shift -= 4) { in uint32ToHexAscii() local 79 buffer[2 + i] = lookup[(value >> shift) & 0xF]; in uint32ToHexAscii()
|
/system/extras/simpleperf/ |
D | event_type.cpp | 39 EventFormat(const std::string& name, const std::string& attr, int shift) in EventFormat() 40 : name(name), attr(attr), shift(shift) {} in EventFormat() 44 int shift; member 256 int shift; in ParseEventFormats() local 257 if (sscanf(format_content.c_str(), "config:%d", &shift) != 1) { in ParseEventFormats() 262 v.emplace_back(EventFormat(format_name, "config", shift)); in ParseEventFormats() 291 config |= val << f.shift; in MakeEventConfig()
|
D | utils.cpp | 355 int shift = 0; in ConvertBytesToValue() local 358 result |= tmp << shift; in ConvertBytesToValue() 359 shift += 8; in ConvertBytesToValue()
|
/system/media/audio_utils/tests/ |
D | biquad_filter_tests.cpp | 284 for (size_t shift = 0; shift < 4; ++shift) { in testCoefReductionEquivalence() local 285 const D a0 = 1 << shift; in testCoefReductionEquivalence()
|
/system/security/keystore/ |
D | Android.bp | 25 "shift",
|
/system/extras/simpleperf/scripts/ |
D | simpleperf_utils.py | 616 for shift in addr_shifts: 618 shifted_addr = max(addr + shift, addr_obj.func_addr) 672 for shift in addr_shifts: 673 shifted_addr = max(addr + shift, addr_obj.func_addr)
|
/system/libziparchive/ |
D | Android.bp | 52 "shift",
|
/system/tools/hidl/ |
D | hidl-gen_y.yy | 620 // - doc_comments can be factored out here to avoid shift/reduce conflicts
|