PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ zigzag32()

uint32_t zigzag32 ( int32_t  val)

Definition at line 176 of file varint.c.

177 {
178  return val >= 0 ?
179  ((uint32_t)val) << 1 :
180  ((((uint32_t)(-1 - val)) << 1) | 0x01);
181 }

Referenced by test_zigzag(), and varint_s32_encode_buf().

Here is the caller graph for this function: