PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ pack_float()

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

Definition at line 1357 of file gserialized_gist_2d.c.

1358 {
1359  union {
1360  float f;
1361  struct { unsigned value:31, sign:1; } vbits;
1362  struct { unsigned value:29, realm:2, sign:1; } rbits;
1363  } a;
1364 
1365  a.f = value;
1366  a.rbits.value = a.vbits.value >> 2;
1367  a.rbits.realm = realm;
1368 
1369  return a.f;
1370 }
int value
Definition: genraster.py:61

References genraster::value.

Referenced by gserialized_gist_penalty_2d().

Here is the caller graph for this function: