|
From: | Richard Henderson |
Subject: | Re: [Qemu-trivial] [Qemu-devel] [PATCH v4 01/40] include: Add IEC binary prefixes in "qemu/units.h" |
Date: | Tue, 12 Jun 2018 10:42:43 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 06/10/2018 03:14 PM, Philippe Mathieu-Daudé wrote: > +#define KiB (1ULL << 10) > +#define MiB (1ULL << 20) > +#define GiB (1ULL << 30) > +#define TiB (1ULL << 40) > +#define PiB (1ULL << 50) > +#define EiB (1ULL << 60) Is there any particular reason to force these to be unsigned? Or, for that matter, 64-bit (at least for the first 3). I ask because this changes the types of some of the expressions in which you use these. r~
[Prev in Thread] | Current Thread | [Next in Thread] |