diff options
author | Avi Kivity <avi@redhat.com> | 2011-10-16 13:13:05 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-10-16 13:13:05 +0200 |
commit | b7cd3db6f4d79f11abf0572fdc5e41d0811ea2e2 (patch) | |
tree | 22b607d838b98141ba62c9aad059f5147a90a913 /hw/pcnet.h | |
parent | 3aeaea654afb1b45a99798f87c143392b2994712 (diff) |
Add support for 128-bit arithmetic
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>
Diffstat (limited to 'hw/pcnet.h')
0 files changed, 0 insertions, 0 deletions