PostGIS  2.3.7dev-r@@SVN_REVISION@@
int8_t unzigzag8 ( uint8_t  val)

Definition at line 204 of file varint.c.

Referenced by header_from_twkb_state(), and test_zigzag().

205 {
206  return !(val & 0x01) ?
207  ((int8_t)(val >> 1)) :
208  (-1 * (int8_t)((val+1) >> 1));
209 }

Here is the caller graph for this function: