Subversion Repositories freemyipod

Rev

Rev 424 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24 cmwslw 1
/***************************************************************************
2
 *             __________               __   ___.
3
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
4
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
5
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
6
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
7
 *                     \/            \/     \/    \/            \/
8
 *
9
 * Copyright © 2010 Rafaël Carré
10
 *
11
 * This program is free software; you can redistribute it and/or
12
 * modify it under the terms of the GNU General Public License
13
 * as published by the Free Software Foundation; either version 2
14
 * of the License, or (at your option) any later version.
15
 *
16
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17
 * KIND, either express or implied.
18
 *
19
 ****************************************************************************/
20
 
52 theseven 21
#ifndef __GCC_EXTENSIONS_H__
22
#define __GCC_EXTENSIONS_H__
24 cmwslw 23
 
24
/* Support for some GCC extensions */
25
 
26
/* Use to give gcc hints on which branch is most likely taken */
27
#if defined(__GNUC__) && __GNUC__ >= 3
28
#define LIKELY(x)   __builtin_expect(!!(x), 1)
29
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
30
#else
31
#define LIKELY(x)   (x)
32
#define UNLIKELY(x) (x)
33
#endif
34
 
35
 
36
#endif /* _GCC_EXTENSIONS_H_ */