PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ unzigzag64()

int64_t unzigzag64 ( uint64_t  val)

Definition at line 189 of file varint.c.

190 {
191  return !(val & 0x01) ?
192  ((int64_t)(val >> 1)) :
193  (-1 * (int64_t)((val+1) >> 1));
194 }

Referenced by test_zigzag(), and varint_s64_decode().

Here is the caller graph for this function: