Searched refs:unsigned_val (Results 1 – 2 of 2) sorted by relevance
112 U unsigned_val = ByteReader<T, B, false>::ReadBigEndian(data); in ReadBigEndian() local114 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() local121 unsigned_val = SignExtend(unsigned_val); in ReadLittleEndian()122 return ReinterpretAsSigned(unsigned_val); in ReadLittleEndian()130 static T ReinterpretAsSigned(U unsigned_val) { in ReinterpretAsSigned() argument139 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()
191 uint32_t unsigned_val; in ReadSignedExponentialGolomb() local192 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()