PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ pack_float()

static float pack_float ( const float  value,
const int  realm 
)
static

Definition at line 1324 of file gserialized_gist_nd.c.

1325 {
1326  union {
1327  float f;
1328  struct { unsigned value:31, sign:1; } vbits;
1329  struct { unsigned value:29, realm:2, sign:1; } rbits;
1330  } a;
1331 
1332  a.f = value;
1333  a.rbits.value = a.vbits.value >> 2;
1334  a.rbits.realm = realm;
1335 
1336  return a.f;
1337 }
int value
Definition: genraster.py:61

References genraster::value.

Referenced by gserialized_gist_penalty().

Here is the caller graph for this function: