summaryrefslogtreecommitdiff
path: root/host-utils.h
AgeCommit message (Collapse)Author
2009-12-17target-alpha: Fix generic ctz64.Richard Henderson
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2009-08-16user: compile host-utils.c only onceBlue Swirl
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2008-11-12Include <strings.h> for ffs().balrog
ffs() is in <strings.h> although bsd compatible systems have it in <string.h> already. ffs() is used in omap1.c, omap2.c, omap_i2c.c, bt-sdp.c. These uses can be replaced with clz32() but ffs is more available. Problem was spotted by malc. Make host-utils.h formatting more consistent. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5708 c046a42c-6fe2-441c-8c8c-71466251a162
2008-10-12Define macro QEMU_GNUC_PREREQ and use itaurel32
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5467 c046a42c-6fe2-441c-8c8c-71466251a162
2008-10-12Only use __builtin_* with GCC >= 3.4aurel32
Fix gcc 3.3 builds, broken in revision 5465. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5466 c046a42c-6fe2-441c-8c8c-71466251a162
2008-10-12Optimize some host-utils function with gcc builtinsaurel32
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5464 c046a42c-6fe2-441c-8c8c-71466251a162
2008-06-05Fix always_inline definition for Darwin, by Andreas Faerber.ths
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4674 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-18Code formatting.ths
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3837 c046a42c-6fe2-441c-8c8c-71466251a162
2007-11-05Fix muls64 prototype to match the actual implementation.j_mayer
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3537 c046a42c-6fe2-441c-8c8c-71466251a162
2007-11-04For consistency, move muls64 / mulu64 prototypes to host-utils.hj_mayer
Make x86_64 optimized versions inline. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3523 c046a42c-6fe2-441c-8c8c-71466251a162
2007-10-28Add shared ctz32, cto32, ctz64, cto64,j_mayer
ctpop8, ctpop16, ctpop32 and ctpop64 helpers. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3465 c046a42c-6fe2-441c-8c8c-71466251a162
2007-10-27Add sharable clz/clo inline functions and use them for the mips target.ths
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3455 c046a42c-6fe2-441c-8c8c-71466251a162