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

« back to all changes in this revision

Viewing changes to include/common/eb64tree.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:
108
108
 */
109
109
 
110
110
/* Delete node from the tree if it was linked in. Mark the node unused. */
111
 
static inline void __eb64_delete(struct eb64_node *eb64)
 
111
static forceinline void __eb64_delete(struct eb64_node *eb64)
112
112
{
113
113
        __eb_delete(&eb64->node);
114
114
}
117
117
 * Find the first occurence of a key in the tree <root>. If none can be
118
118
 * found, return NULL.
119
119
 */
120
 
static inline struct eb64_node *__eb64_lookup(struct eb_root *root, u64 x)
 
120
static forceinline struct eb64_node *__eb64_lookup(struct eb_root *root, u64 x)
121
121
{
122
122
        struct eb64_node *node;
123
123
        eb_troot_t *troot;
161
161
 * Find the first occurence of a signed key in the tree <root>. If none can
162
162
 * be found, return NULL.
163
163
 */
164
 
static inline struct eb64_node *__eb64i_lookup(struct eb_root *root, s64 x)
 
164
static forceinline struct eb64_node *__eb64i_lookup(struct eb_root *root, s64 x)
165
165
{
166
166
        struct eb64_node *node;
167
167
        eb_troot_t *troot;
205
205
/* Insert eb64_node <new> into subtree starting at node root <root>.
206
206
 * Only new->key needs be set with the key. The eb64_node is returned.
207
207
 */
208
 
static inline struct eb64_node *
 
208
static forceinline struct eb64_node *
209
209
__eb64_insert(struct eb_root *root, struct eb64_node *new) {
210
210
        struct eb64_node *old;
211
211
        unsigned int side;
371
371
 * signed keys. Only new->key needs be set with the key. The eb64_node
372
372
 * is returned.
373
373
 */
374
 
static inline struct eb64_node *
 
374
static forceinline struct eb64_node *
375
375
__eb64i_insert(struct eb_root *root, struct eb64_node *new) {
376
376
        struct eb64_node *old;
377
377
        unsigned int side;