PostGIS  2.2.7dev-r@@SVN_REVISION@@
int32_t unzigzag32 ( uint32_t  val)

Definition at line 188 of file varint.c.

Referenced by test_zigzag().

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

Here is the caller graph for this function: