- ctf_init_pos(&destp, -1, O_WRONLY);
- destp.base = (char *) u.bits;
-
+ switch (float_declaration->mantissa->len + 1) {
+ case FLT_MANT_DIG:
+ tmpdef = static_float_declaration->p.definition_new(
+ &static_float_declaration->p,
+ NULL, 0, 0, "__tmpfloat");
+ break;
+ case DBL_MANT_DIG:
+ tmpdef = static_double_declaration->p.definition_new(
+ &static_double_declaration->p,
+ NULL, 0, 0, "__tmpfloat");
+ break;
+ default:
+ return -EINVAL;
+ }
+ tmpfloat = container_of(tmpdef, struct definition_float, p);
+ ctf_init_pos(&destp, -1, O_RDWR);
+ mmap_align_set_addr(&mma, (char *) u.bits);
+ destp.base_mma = &mma;
+ destp.packet_size = sizeof(u) * CHAR_BIT;