PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ pack_float()

static float pack_float ( const float  value,
const uint8_t  realm 
)
inlinestatic

Definition at line 1195 of file gserialized_gist_2d.c.

1196 {
1197  union {
1198  float f;
1199  struct {
1200  unsigned value : 31, sign : 1;
1201  } vbits;
1202  struct {
1203  unsigned value : 30, realm : 1, sign : 1;
1204  } rbits;
1205  } a;
1206 
1207  a.f = value;
1208  a.rbits.value = a.vbits.value >> 1;
1209  a.rbits.realm = realm;
1210 
1211  return a.f;
1212 }
int value
Definition: genraster.py:62

References genraster::value.

Referenced by box2df_penalty().

Here is the caller graph for this function: