Searched refs:zigZagEncode32 (Results 1 – 2 of 2) sorted by relevance
/external/protobuf/php/tests/ |
D | php_implementation_test.php | 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)); [all …]
|
/external/protobuf/php/src/Google/Protobuf/Internal/ |
D | GPBWire.php | 118 public static function zigZagEncode32($int32) function in Google\\Protobuf\\Internal\\GPBWire 322 $value = GPBWire::zigZagEncode32($value); 433 $value = self::zigZagEncode32($value);
|