aboutsummaryrefslogtreecommitdiff
path: root/host-utils.h
AgeCommit message (Collapse)AuthorFilesLines
2011-09-23Move macro QEMU_GNUC_PREREQ to compiler.hStefan Weil1-1/+1
The macro is compiler specific and does not depend on the operating system. Move macro QEMU_GNUC_PREREQ from osdep.h to compiler.h and use it to simplify existing code. host-utils.h uses this macro, so it now needs compiler.h instead of osdep.h. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-12-17target-alpha: Fix generic ctz64.Richard Henderson1-1/+1
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 Swirl1-16/+16
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2008-11-12Include <strings.h> for ffs().balrog1-24/+24
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 itaurel321-6/+6
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.4aurel321-6/+6
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 builtinsaurel321-4/+36
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.ths1-0/+2
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4674 c046a42c-6fe2-441c-8c8c-71466251a162
2007-12-18Code formatting.ths1-1/+1
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_mayer1-1/+1
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_mayer1-26/+27
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_mayer1-0/+97
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.ths1-0/+104
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3455 c046a42c-6fe2-441c-8c8c-71466251a162