summaryrefslogtreecommitdiffstats
path: root/host-utils.h
Commit message (Collapse)AuthorAgeFilesLines
* Move macro QEMU_GNUC_PREREQ to compiler.hStefan Weil2011-09-231-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>
* target-alpha: Fix generic ctz64.Richard Henderson2009-12-171-1/+1
| | | | | Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* user: compile host-utils.c only onceBlue Swirl2009-08-161-16/+16
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Include <strings.h> for ffs().balrog2008-11-121-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
* Define macro QEMU_GNUC_PREREQ and use itaurel322008-10-121-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
* Only use __builtin_* with GCC >= 3.4aurel322008-10-121-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
* Optimize some host-utils function with gcc builtinsaurel322008-10-121-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
* Fix always_inline definition for Darwin, by Andreas Faerber.ths2008-06-061-0/+2
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4674 c046a42c-6fe2-441c-8c8c-71466251a162
* Code formatting.ths2007-12-181-1/+1
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3837 c046a42c-6fe2-441c-8c8c-71466251a162
* Fix muls64 prototype to match the actual implementation.j_mayer2007-11-051-1/+1
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3537 c046a42c-6fe2-441c-8c8c-71466251a162
* For consistency, move muls64 / mulu64 prototypes to host-utils.hj_mayer2007-11-041-26/+27
| | | | | | | Make x86_64 optimized versions inline. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3523 c046a42c-6fe2-441c-8c8c-71466251a162
* Add shared ctz32, cto32, ctz64, cto64,j_mayer2007-10-281-0/+97
| | | | | | | ctpop8, ctpop16, ctpop32 and ctpop64 helpers. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3465 c046a42c-6fe2-441c-8c8c-71466251a162
* Add sharable clz/clo inline functions and use them for the mips target.ths2007-10-271-0/+104
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3455 c046a42c-6fe2-441c-8c8c-71466251a162