~ubuntu-branches/ubuntu/jaunty/pulseaudio/jaunty-updates

« back to all changes in this revision

Viewing changes to src/pulsecore/gccmacro.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071204005608-3lzrrrpxi186kgx4
Tags: upstream-0.9.8
ImportĀ upstreamĀ versionĀ 0.9.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef foopulsegccmacrohfoo
2
2
#define foopulsegccmacrohfoo
3
3
 
4
 
/* $Id: gccmacro.h 1971 2007-10-28 19:13:50Z lennart $ */
 
4
/* $Id: gccmacro.h 2036 2007-11-09 02:12:09Z lennart $ */
5
5
 
6
6
/***
7
7
  This file is part of PulseAudio.
60
60
#endif
61
61
 
62
62
#ifndef PA_GCC_PURE
63
 
#ifdef __GNUCC__
 
63
#ifdef __GNUC__
64
64
#define PA_GCC_PURE __attribute__ ((pure))
65
65
#else
66
66
/** This function's return value depends only the arguments list and global state **/
69
69
#endif
70
70
 
71
71
#ifndef PA_GCC_CONST
72
 
#ifdef __GNUCC__
 
72
#ifdef __GNUC__
73
73
#define PA_GCC_CONST __attribute__ ((const))
74
74
#else
75
75
/** This function's return value depends only the arguments list (stricter version of PA_GCC_PURE) **/
77
77
#endif
78
78
#endif
79
79
 
 
80
#ifndef PA_LIKELY
 
81
#ifdef __GNUC__
 
82
#define PA_LIKELY(x) (__builtin_expect((x),1))
 
83
#define PA_UNLIKELY(x) (__builtin_expect((x),0))
 
84
#else
 
85
#define PA_LIKELY(x) (x)
 
86
#define PA_UNLIKELY(x) (x)
 
87
#endif
 
88
#endif
 
89
 
80
90
#endif