]> git.proxmox.com Git - qemu.git/commit - tests/test-int128.c
int128: optimize and add test cases
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Jun 2013 14:19:32 +0000 (16:19 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Jul 2013 06:17:01 +0000 (08:17 +0200)
commit6046c620866f6f5c53eaece9f4ad8d44a12e1185
tree54fcfbdf8f15d62f5e2c8ac9d2f43f80222ee9b7
parent1acd5a373905ddb28957842256a038956941f332
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 <pbonzini@redhat.com>
include/qemu/int128.h
tests/Makefile
tests/test-int128.c [new file with mode: 0644]