diff options
author | Richard Henderson <rth@twiddle.net> | 2013-02-16 12:46:59 -0800 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2013-02-17 14:28:57 +0000 |
commit | f540166b7dfdf4ec2057ac322d8cbfd0691e1d65 (patch) | |
tree | 9ed4b3eed2a58ad4c14ec8e728fedf70bbb4d905 /nbd.c | |
parent | be96bd3fbffde908a392c830c856063e122791c1 (diff) | |
download | hqemu-f540166b7dfdf4ec2057ac322d8cbfd0691e1d65.zip hqemu-f540166b7dfdf4ec2057ac322d8cbfd0691e1d65.tar.gz |
host-utils: Use __int128_t for mul[us]64
Replace some x86_64 specific inline assembly with something that
all 64-bit hosts ought to optimize well. At worst this becomes
a call to the gcc __multi3 routine, which is no worse than our
implementation in util/host-utils.c.
With gcc 4.7, we get identical code generation for x86_64. We
now get native multiplication on ia64 and s390x hosts. With minor
improvements to gcc we can get it for ppc64 as well.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'nbd.c')
0 files changed, 0 insertions, 0 deletions