PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ unzigzag64()

int64_t unzigzag64 ( uint64_t  val)

Definition at line 181 of file varint.c.

Referenced by test_zigzag(), and varint_s64_decode().

182 {
183  return !(val & 0x01) ?
184  ((int64_t)(val >> 1)) :
185  (-1 * (int64_t)((val+1) >> 1));
186 }
Here is the caller graph for this function: