Lines Matching refs:GPBEncodeZigZag64
270 XCTAssertEqual(0ULL, GPBEncodeZigZag64(0));
271 XCTAssertEqual(1ULL, GPBEncodeZigZag64(-1));
272 XCTAssertEqual(2ULL, GPBEncodeZigZag64(1));
273 XCTAssertEqual(3ULL, GPBEncodeZigZag64(-2));
275 GPBEncodeZigZag64(0x000000003FFFFFFFLL));
277 GPBEncodeZigZag64(0xFFFFFFFFC0000000LL));
279 GPBEncodeZigZag64(0x000000007FFFFFFFLL));
281 GPBEncodeZigZag64(0xFFFFFFFF80000000LL));
283 GPBEncodeZigZag64(0x7FFFFFFFFFFFFFFFLL));
285 GPBEncodeZigZag64(0x8000000000000000LL));
295 XCTAssertEqual(0ULL, GPBEncodeZigZag64(GPBDecodeZigZag64(0)));
296 XCTAssertEqual(1ULL, GPBEncodeZigZag64(GPBDecodeZigZag64(1)));
297 XCTAssertEqual(-1ULL, GPBEncodeZigZag64(GPBDecodeZigZag64(-1)));
298 XCTAssertEqual(14927ULL, GPBEncodeZigZag64(GPBDecodeZigZag64(14927)));
299 XCTAssertEqual(-3612ULL, GPBEncodeZigZag64(GPBDecodeZigZag64(-3612)));
302 GPBEncodeZigZag64(GPBDecodeZigZag64(856912304801416LL)));
304 GPBEncodeZigZag64(GPBDecodeZigZag64(-75123905439571256LL)));