PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ zigzag64()

uint64_t zigzag64 ( int64_t  val)

Definition at line 169 of file varint.c.

170 {
171  return val >= 0 ?
172  ((uint64_t)val) << 1 :
173  ((((uint64_t)(-1 - val)) << 1) | 0x01);
174 }

Referenced by test_zigzag(), and varint_s64_encode_buf().

Here is the caller graph for this function: