Home
last modified time | relevance | path

Searched refs:unsigned_val (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dbyte_io.h112 U unsigned_val = ByteReader<T, B, false>::ReadBigEndian(data); in ReadBigEndian() local
114 unsigned_val = SignExtend(unsigned_val); in ReadBigEndian()
115 return ReinterpretAsSigned(unsigned_val); in ReadBigEndian()
119 U unsigned_val = ByteReader<T, B, false>::ReadLittleEndian(data); in ReadLittleEndian() local
121 unsigned_val = SignExtend(unsigned_val); in ReadLittleEndian()
122 return ReinterpretAsSigned(unsigned_val); in ReadLittleEndian()
130 static T ReinterpretAsSigned(U unsigned_val) { in ReinterpretAsSigned() argument
139 if ((unsigned_val & kUnsignedHighestBitMask) != 0) { in ReinterpretAsSigned()
142 val = static_cast<T>(unsigned_val & ~kUnsignedHighestBitMask); in ReinterpretAsSigned()
145 val = static_cast<T>(unsigned_val); in ReinterpretAsSigned()
/external/webrtc/webrtc/base/
Dbitbuffer.cc191 uint32_t unsigned_val; in ReadSignedExponentialGolomb() local
192 if (!ReadExponentialGolomb(&unsigned_val)) { in ReadSignedExponentialGolomb()
195 if ((unsigned_val & 1) == 0) { in ReadSignedExponentialGolomb()
196 *val = -static_cast<int32_t>(unsigned_val / 2); in ReadSignedExponentialGolomb()
198 *val = (unsigned_val + 1) / 2; in ReadSignedExponentialGolomb()