Re: [Qemu-devel] [RFC 1/2] include/: import sizes.h from barebox

2013-09-09 Thread Richard Henderson
On 09/09/2013 10:32 AM, Aurelien Jarno wrote: >> +#define SZ_2G 0x8000 At minimum this must have a U or LL suffix. And if this one has the suffix, then for consistency the rest ought as well. r~

Re: [Qemu-devel] [RFC 1/2] include/: import sizes.h from barebox

2013-09-09 Thread Stefan Weil
Am 09.09.2013 19:32, schrieb Aurelien Jarno: > On Wed, Sep 04, 2013 at 11:35:27AM +0400, Antony Pavlov wrote: >> @@ -0,0 +1,48 @@ >> +/* >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License as published by >> + * the

Re: [Qemu-devel] [RFC 1/2] include/: import sizes.h from barebox

2013-09-09 Thread Aurelien Jarno
On Wed, Sep 04, 2013 at 11:35:27AM +0400, Antony Pavlov wrote: > The header file sizes.h is used in linux kernel, > barebox bootloader and u-boot bootloader. It provides > the short and easy-to-read names for power-of-two > numbers. The numbers like this are othen used > for memory range sizes. >

Re: [Qemu-devel] [RFC 1/2] include/: import sizes.h from barebox

2013-09-09 Thread Paolo Bonzini
Il 09/09/2013 19:32, Aurelien Jarno ha scritto: > On Wed, Sep 04, 2013 at 11:35:27AM +0400, Antony Pavlov wrote: >> The header file sizes.h is used in linux kernel, >> barebox bootloader and u-boot bootloader. It provides >> the short and easy-to-read names for power-of-two >> numbers. The numbers

[Qemu-devel] [RFC 1/2] include/: import sizes.h from barebox

2013-09-04 Thread Antony Pavlov
The header file sizes.h is used in linux kernel, barebox bootloader and u-boot bootloader. It provides the short and easy-to-read names for power-of-two numbers. The numbers like this are othen used for memory range sizes. This commits imports the sizes.h from barebox bootloader source code (see h