~ubuntu-branches/ubuntu/utopic/haproxy/utopic-proposed

« back to all changes in this revision

Viewing changes to include/common/config.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2009-02-17 08:55:12 UTC
  • mfrom: (1.1.5 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090217085512-qmij51nun3rbxorz
Fix build without debian/patches directory (Closes: #515682) using
/usr/share/quilt/quilt.make.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
 
71
71
/* CONFIG_HAP_USE_REGPARM
72
72
 * This enables the use of register parameters for some functions where
73
 
 * it may improve performance by a measurable factor.
 
73
 * it may improve performance by a measurable factor. This MUST NOT be
 
74
 * enabled on gcc < 3 because it is ignored for function pointers.
74
75
 */
75
 
#ifdef CONFIG_HAP_USE_REGPARM
 
76
#if CONFIG_HAP_USE_REGPARM && __GNUC__ >= 3
76
77
#define REGPRM1 __attribute__((regparm(1)))
77
78
#define REGPRM2 __attribute__((regparm(2)))
78
79
#define REGPRM3 __attribute__((regparm(3)))
82
83
#define REGPRM3
83
84
#endif
84
85
 
 
86
/* By default, gcc does not inline large chunks of code, but we want it to
 
87
 * respect our choices.
 
88
 */
 
89
#if !defined(forceinline)
 
90
#if __GNUC__ < 3
 
91
#define forceinline inline
 
92
#else
 
93
#define forceinline inline __attribute__((always_inline))
 
94
#endif
 
95
#endif
 
96
 
85
97
#endif /* _COMMON_CONFIG_H */