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 1151 of file gserialized_gist_nd.c.

1152{
1153 union {
1154 float f;
1155 struct {
1156 unsigned value : 31, sign : 1;
1157 } vbits;
1158 struct {
1159 unsigned value : 30, realm : 1, sign : 1;
1160 } rbits;
1161 } a;
1162
1163 a.f = value;
1164 a.rbits.value = a.vbits.value >> 1;
1165 a.rbits.realm = realm;
1166
1167 return a.f;
1168}
int value
Definition genraster.py:62

Referenced by gserialized_gist_penalty().

Here is the caller graph for this function: