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

Definition at line 197 of file varint.c.

Referenced by test_zigzag().

198 {
199  return !(val & 0x01) ?
200  ((int32_t)(val >> 1)) :
201  (-1 * (int32_t)((val+1) >> 1));
202 }

Here is the caller graph for this function: