mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
always_inline gcc directive can be useful.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3259 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f1548daae3
commit
29f640e2cf
2 changed files with 16 additions and 0 deletions
|
@ -37,6 +37,14 @@
|
|||
#define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
#endif
|
||||
|
||||
#ifndef always_inline
|
||||
#if __GNUC__ < 3
|
||||
#define always_inline inline
|
||||
#else
|
||||
#define always_inline __attribute__ (( always_inline )) inline
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __i386__
|
||||
#define REGPARM(n) __attribute((regparm(n)))
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue