Rev 71 | Blame | Last modification | View Log | RSS feed
/**************************************************************************** __________ __ ___.* Open \______ \ ____ ____ | | _\_ |__ _______ ___* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \* \/ \/ \/ \/ \/** Copyright © 2010 Rafaël Carré** This program is free software; you can redistribute it and/or* modify it under the terms of the GNU General Public License* as published by the Free Software Foundation; either version 2* of the License, or (at your option) any later version.** This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY* KIND, either express or implied.*****************************************************************************/#ifndef __GCC_EXTENSIONS_H__#define __GCC_EXTENSIONS_H__/* Support for some GCC extensions *//* Use to give gcc hints on which branch is most likely taken */#if defined(__GNUC__) && __GNUC__ >= 3#define LIKELY(x) __builtin_expect(!!(x), 1)#define UNLIKELY(x) __builtin_expect(!!(x), 0)#else#define LIKELY(x) (x)#define UNLIKELY(x) (x)#endif#endif /* _GCC_EXTENSIONS_H_ */