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

◆ pack_float()

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

Definition at line 1214 of file gserialized_gist_2d.c.

1215{
1216 union {
1217 float f;
1218 struct {
1219 unsigned value : 31, sign : 1;
1220 } vbits;
1221 struct {
1222 unsigned value : 30, realm : 1, sign : 1;
1223 } rbits;
1224 } a;
1225
1226 a.f = value;
1227 a.rbits.value = a.vbits.value >> 1;
1228 a.rbits.realm = realm;
1229
1230 return a.f;
1231}
int value
Definition genraster.py:62

Referenced by box2df_penalty(), and box2df_penalty_single().

Here is the caller graph for this function: