PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ unzigzag32()

int32_t unzigzag32 ( uint32_t  val)

Definition at line 196 of file varint.c.

Referenced by test_zigzag().

197 {
198  return !(val & 0x01) ?
199  ((int32_t)(val >> 1)) :
200  (-1 * (int32_t)((val+1) >> 1));
201 }
Here is the caller graph for this function: