Mark some functions as always_inline with GCC and ICC.
These functions are too critical to be called. They should always be inlined. Change-Id: I698dc6d83e02c323759c6d066f17993340bd53a5 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>bb10
parent
0060b44d70
commit
1765329b8c
|
|
@ -71,6 +71,9 @@ QT_BEGIN_NAMESPACE
|
|||
// RVCT doesn't like static template functions
|
||||
# define Q_STATIC_TEMPLATE_FUNCTION
|
||||
# define Q_STATIC_INLINE_FUNCTION static __forceinline
|
||||
#elif defined(Q_CC_GNU)
|
||||
# define Q_STATIC_TEMPLATE_FUNCTION static __attribute__((always_inline))
|
||||
# define Q_STATIC_INLINE_FUNCTION static inline __attribute__((always_inline))
|
||||
#else
|
||||
# define Q_STATIC_TEMPLATE_FUNCTION static
|
||||
# define Q_STATIC_INLINE_FUNCTION static inline
|
||||
|
|
|
|||
Loading…
Reference in New Issue