Re: [Qemu-devel] [PATCH v9 11/37] qapi: Consolidate visitor small integer callbacks

2016-01-21 Thread Markus Armbruster
Eric Blake writes: > On 01/20/2016 10:34 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> Commit 4e27e819 introduced optional visitor callbacks for all >>> sorts of int types, but no visitor has supplied any of the >>> callbacks for sizes less than 64 bits. In other words, the >>> gen

Re: [Qemu-devel] [PATCH v9 11/37] qapi: Consolidate visitor small integer callbacks

2016-01-20 Thread Eric Blake
On 01/20/2016 10:34 AM, Markus Armbruster wrote: > Eric Blake writes: > >> Commit 4e27e819 introduced optional visitor callbacks for all >> sorts of int types, but no visitor has supplied any of the >> callbacks for sizes less than 64 bits. In other words, the >> generic implementation based on

Re: [Qemu-devel] [PATCH v9 11/37] qapi: Consolidate visitor small integer callbacks

2016-01-20 Thread Markus Armbruster
Eric Blake writes: > Commit 4e27e819 introduced optional visitor callbacks for all > sorts of int types, but no visitor has supplied any of the > callbacks for sizes less than 64 bits. In other words, the > generic implementation based on using type_[u]int64() followed > by bounds-checking works

[Qemu-devel] [PATCH v9 11/37] qapi: Consolidate visitor small integer callbacks

2016-01-19 Thread Eric Blake
Commit 4e27e819 introduced optional visitor callbacks for all sorts of int types, but no visitor has supplied any of the callbacks for sizes less than 64 bits. In other words, the generic implementation based on using type_[u]int64() followed by bounds-checking works just fine. In the interest of