PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ zigzag8()

uint8_t zigzag8 ( int8_t  val)

Definition at line 183 of file varint.c.

184{
185 return val >= 0 ?
186 ((uint8_t)val) << 1 :
187 ((((uint8_t)(-1 - val)) << 1) | 0x01);
188}

Referenced by lwgeom_write_to_buffer(), and test_zigzag().

Here is the caller graph for this function: