History | View | Annotate | Download (2.5 kB)
host-utils: Improve mulu64 and muls64
The new formulation makes better use of add-with-carry type insnsthat the host may have. Use gcc's sign adjustment trick to avoidhaving to perform a 128-bit negation.
Signed-off-by: Richard Henderson <rth@twiddle.net>...
host-utils: Use __int128_t for mul[us]64
Replace some x86_64 specific inline assembly with something thatall 64-bit hosts ought to optimize well. At worst this becomesa call to the gcc __multi3 routine, which is no worse than ourimplementation in util/host-utils.c....
build: move libqemuutil.a components to util/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>