summaryrefslogtreecommitdiffstats
path: root/host-utils.h
Commit message (Collapse)AuthorAgeFilesLines
* 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-051-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
OpenPOWER on IntegriCloud