Lines Matching refs:zigZagEncode32
215 $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(0x7FFFFFFF));
266 $this->assertSame(4294967295, GPBWire::zigZagEncode32(0x80000000));
295 $this->assertSame(0, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(0)));
296 $this->assertSame(1, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(1)));
297 $this->assertSame(-1, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(-1)));
299 GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(14927)));
301 GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(-3612)));