union doubleIEEE754 u;
struct bt_definition *tmpdef;
struct definition_float *tmpfloat;
- struct ctf_stream_pos srcp;
+ struct ctf_stream_pos srcp = { { 0 } };
struct mmap_align mma;
int ret;
return ret;
}
+double bt_get_float(const struct bt_definition *field)
+{
+ struct definition_float *definition =
+ container_of(field, struct definition_float, p);
+
+ return definition->value;
+}
+
static
void __attribute__((constructor)) ctf_float_init(void)
{