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

◆ pack_float()

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

Definition at line 1132 of file gserialized_gist_2d.c.

1133{
1134 union {
1135 float f;
1136 struct {
1137 unsigned value : 31, sign : 1;
1138 } vbits;
1139 struct {
1140 unsigned value : 30, realm : 1, sign : 1;
1141 } rbits;
1142 } a;
1143
1144 a.f = value;
1145 a.rbits.value = a.vbits.value >> 1;
1146 a.rbits.realm = realm;
1147
1148 return a.f;
1149}
int value
Definition genraster.py:62

Referenced by box2df_penalty().

Here is the caller graph for this function: