PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ pack_float()

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

Definition at line 1179 of file gserialized_gist_2d.c.

1180 {
1181  union {
1182  float f;
1183  struct {
1184  unsigned value : 31, sign : 1;
1185  } vbits;
1186  struct {
1187  unsigned value : 30, realm : 1, sign : 1;
1188  } rbits;
1189  } a;
1190 
1191  a.f = value;
1192  a.rbits.value = a.vbits.value >> 1;
1193  a.rbits.realm = realm;
1194 
1195  return a.f;
1196 }
int value
Definition: genraster.py:62

References genraster::value.

Referenced by box2df_penalty().

Here is the caller graph for this function: