Statistics
| Branch: | Revision:

root / tests / test-int128.c @ 7edd9ddc

History | View | Annotate | Download (6.7 kB)

# Date Author Comment
7edd9ddc 03/02/2014 03:20 pm Peter Maydell

tests/test-int128: Don't use noclone attribute on clang

clang doesn't support the noclone attribute and emits a warning about
it. Fortunately clang also implements a mechanism for asking if a particular
attribute is implemented; use it. We assume that if the compiler doesn't...

6046c620 07/02/2013 09:17 am Paolo Bonzini

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 the
carry.

For ge, we can just do lexicographic order.

Signed-off-by: Paolo Bonzini <>