Richard Henderson
7625a1ed01
utils: Use fixed-point arithmetic in qemu_strtosz
...
Once we've parsed the fractional value, extract it into an integral
64-bit fraction. Perform the scaling with integer arithmetic, and
simplify the overflow detection.
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210315155835.1970210-2-richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2021-03-15 12:47:08 -06:00
..
2020-10-09 07:08:20 +02:00
2020-09-23 16:07:44 +01:00
2020-11-03 16:24:56 +01:00
2020-10-09 07:08:20 +02:00
2020-09-23 16:07:44 +01:00
2020-11-15 17:04:40 +01:00
2020-09-23 16:07:44 +01:00
2020-10-23 13:42:16 +01:00
2020-10-23 13:42:16 +01:00
2020-11-15 17:04:40 +01:00
2021-01-21 13:00:41 +01:00
2021-01-07 05:09:41 -10:00
2021-01-26 14:36:37 +01:00
2021-01-24 20:10:54 +01:00
2021-03-15 12:47:08 -06:00
2021-02-16 17:15:39 +01:00
2020-09-23 16:07:44 +01:00
2020-09-23 16:07:44 +01:00
2020-09-23 13:45:52 +01:00
2021-02-07 20:38:20 +00:00
2020-11-15 17:04:40 +01:00
2020-11-15 17:04:40 +01:00
2020-09-29 02:14:30 -04:00
2021-03-09 21:47:45 +01:00
2021-02-03 08:00:33 -06:00
2020-12-19 10:39:23 +01:00
2020-09-23 16:07:44 +01:00
2020-11-15 17:04:40 +01:00
2021-03-09 06:03:53 +01:00
2021-02-08 11:19:51 +00:00
2021-02-09 20:53:56 +00:00
2020-10-29 06:37:24 +01:00
2020-12-10 17:16:44 +01:00
2020-09-22 15:42:23 +01:00
2021-02-09 20:53:56 +00:00
2021-01-11 14:59:21 +01:00
2021-03-06 11:41:54 +01:00
2020-11-04 08:02:24 +01:00
2020-09-23 16:07:44 +01:00
2020-09-23 16:07:44 +01:00
2021-02-01 10:50:55 +00:00
2021-03-06 11:42:57 +01:00
2020-10-09 07:08:19 +02:00
2020-09-17 20:38:42 +02:00
2020-11-03 13:17:25 +00:00
2020-09-23 16:07:44 +01:00
2020-09-23 16:07:44 +01:00
2021-01-18 10:05:06 +00:00
2021-03-12 11:30:55 +00:00
2020-09-23 16:07:44 +01:00
2020-09-23 16:07:44 +01:00
2020-09-23 16:07:44 +01:00
2021-01-04 11:13:39 +00:00
2020-09-23 16:07:44 +01:00
2021-01-08 15:13:38 +00:00
2021-02-08 11:19:51 +00:00
2020-08-21 06:18:24 -04:00
2021-02-08 11:19:51 +00:00
2020-11-23 13:03:13 +00:00
2020-10-23 13:42:16 +01:00
2021-01-13 10:21:17 +01:00