Re: [Qemu-devel] [PATCH v2] int128: optimize and add test cases

2013-06-21 Thread Paolo Bonzini
Il 21/06/2013 17:10, Richard Henderson ha scritto: > On 06/21/2013 12:48 AM, Paolo Bonzini wrote: >> --- /dev/null >> +++ b/tests/test-int128.c >> @@ -0,0 +1,212 @@ >> +/* >> + * Test 64x64 -> 128 multiply subroutines > > Cutnpaste test description. Otherwise, > > Reviewed-by: Richard Henderson

Re: [Qemu-devel] [PATCH v2] int128: optimize and add test cases

2013-06-21 Thread Richard Henderson
On 06/21/2013 12:48 AM, Paolo Bonzini wrote: > --- /dev/null > +++ b/tests/test-int128.c > @@ -0,0 +1,212 @@ > +/* > + * Test 64x64 -> 128 multiply subroutines Cutnpaste test description. Otherwise, Reviewed-by: Richard Henderson r~

[Qemu-devel] [PATCH v2] int128: optimize and add test cases

2013-06-21 Thread Paolo Bonzini
For add, the carry only requires checking one of the arguments. For sub and neg, we can similarly optimize computation of the carry. For ge, we can just do lexicographic order. Signed-off-by: Paolo Bonzini --- include/qemu/int128.h | 25 -- tests/Makefile| 6 +- tests/test-int128