Home
last modified time | relevance | path

Searched refs:zigZagEncode32 (Results 1 - 2 of 2) sorted by relevance

/third_party/protobuf/php/tests/
H A DPhpImplementationTest.php215 $this->assertSame(0, GPBWire::zigZagEncode32(0));
216 $this->assertSame(1, GPBWire::zigZagEncode32(-1));
217 $this->assertSame(2, GPBWire::zigZagEncode32(1));
218 $this->assertSame(3, GPBWire::zigZagEncode32(-2));
219 $this->assertSame(0x7FFFFFFE, GPBWire::zigZagEncode32(0x3FFFFFFF));
220 $this->assertSame(0x7FFFFFFF, GPBWire::zigZagEncode32(0xC0000000));
221 $this->assertSame(0x7FFFFFFF, GPBWire::zigZagEncode32(-1073741824));
233 $this->assertSame(-2, GPBWire::zigZagEncode32(0x7FFFFFFF));
234 $this->assertSame(-1, GPBWire::zigZagEncode32(0x80000000));
265 $this->assertSame(4294967294, GPBWire::zigZagEncode32(
[all...]
/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DGPBWire.php118 public static function zigZagEncode32($int32) function
322 $value = GPBWire::zigZagEncode32($value);
433 $value = self::zigZagEncode32($value);

Completed in 2 milliseconds