The code can be replaced by floatformat_totalsize_bytes.
gdb:
2017-04-24 Yao Qi <yao.qi@linaro.org>
* doublest.c (convert_doublest_to_floatformat): Call
floatformat_totalsize_bytes.
+2017-04-24 Yao Qi <yao.qi@linaro.org>
+
+ * doublest.c (convert_doublest_to_floatformat): Call
+ floatformat_totalsize_bytes.
+
2017-04-22 Tom Tromey <tom@tromey.com>
* mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
uto = newto;
memcpy (&dfrom, from, sizeof (dfrom));
- memset (uto, 0, (fmt->totalsize + FLOATFORMAT_CHAR_BIT - 1)
- / FLOATFORMAT_CHAR_BIT);
+ memset (uto, 0, floatformat_totalsize_bytes (fmt));
if (fmt->split_half)
{