PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ unzigzag64()

int64_t unzigzag64 ( uint64_t  val)

Definition at line 190 of file varint.c.

Referenced by test_zigzag(), and varint_s64_decode().

191 {
192  return !(val & 0x01) ?
193  ((int64_t)(val >> 1)) :
194  (-1 * (int64_t)((val+1) >> 1));
195 }
Here is the caller graph for this function: