PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ unzigzag64()

int64_t unzigzag64 ( uint64_t  val)

Definition at line 189 of file varint.c.

Referenced by test_zigzag(), and varint_s64_decode().

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