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~