Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 13 of 13) sorted by relevance

/system/netd/libnetdutils/include/netdutils/
DMath.h27 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/
Dexample_utils.cpp27 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()
Dexample_utils.h37 uint32_t alfaCombineChannel(uint32_t shift, double alfa, uint32_t a, uint32_t b);
/system/unwinding/libunwindstack/
DDwarfMemory.cpp49 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()
DArmExidx.cpp445 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/
Dnano_string.cc78 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/
Devent_type.cpp39 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()
Dutils.cpp355 int shift = 0; in ConvertBytesToValue() local
358 result |= tmp << shift; in ConvertBytesToValue()
359 shift += 8; in ConvertBytesToValue()
/system/media/audio_utils/tests/
Dbiquad_filter_tests.cpp284 for (size_t shift = 0; shift < 4; ++shift) { in testCoefReductionEquivalence() local
285 const D a0 = 1 << shift; in testCoefReductionEquivalence()
/system/security/keystore/
DAndroid.bp25 "shift",
/system/extras/simpleperf/scripts/
Dsimpleperf_utils.py616 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/
DAndroid.bp52 "shift",
/system/tools/hidl/
Dhidl-gen_y.yy620 // - doc_comments can be factored out here to avoid shift/reduce conflicts