aboutsummaryrefslogtreecommitdiff
path: root/int128.h
AgeCommit message (Collapse)AuthorFilesLines
2012-12-19misc: move include files to include/qemu/Paolo Bonzini1-116/+0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2011-10-16Add support for 128-bit arithmeticAvi Kivity1-0/+116
The memory API supports 64-bit buses (e.g. PCI). A size on such a bus cannot be represented with a 64-bit data type, if both 0 and the entire address space size are to be represented. Futhermore, any address arithemetic may overflow and return unexpected results. Introduce a 128-bit signed integer type for use in such cases. Addition, subtraction, and comparison are the only operations supported. Signed-off-by: Avi Kivity <avi@redhat.com>