History | View | Annotate | Download (6.7 kB)
tests/test-int128: Don't use noclone attribute on clang
clang doesn't support the noclone attribute and emits a warning aboutit. Fortunately clang also implements a mechanism for asking if a particularattribute is implemented; use it. We assume that if the compiler doesn't...
int128: optimize and add test cases
For add, the carry only requires checking one of the arguments.For sub and neg, we can similarly optimize computation of thecarry.
For ge, we can just do lexicographic order.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>