Home
last modified time | relevance | path

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

/external/protobuf/php/tests/
Dphp_implementation_test.php223 $this->assertSame(0, GPBWire::zigZagDecode32(0));
224 $this->assertSame(-1, GPBWire::zigZagDecode32(1));
225 $this->assertSame(1, GPBWire::zigZagDecode32(2));
226 $this->assertSame(-2, GPBWire::zigZagDecode32(3));
227 $this->assertSame(0x3FFFFFFF, GPBWire::zigZagDecode32(0x7FFFFFFE));
228 $this->assertSame(-1073741824, GPBWire::zigZagDecode32(0x7FFFFFFF));
229 $this->assertSame(0x7FFFFFFF, GPBWire::zigZagDecode32(0xFFFFFFFE));
230 $this->assertSame((int)-2147483648,GPBWire::zigZagDecode32(0xFFFFFFFF));
295 $this->assertSame(0, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(0)));
296 $this->assertSame(1, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(1)));
[all …]
/external/protobuf/php/src/Google/Protobuf/Internal/
DGPBWire.php128 public static function zigZagDecode32($uint32) function in Google\\Protobuf\\Internal\\GPBWire
195 $value = GPBWire::zigZagDecode32($value);