Subversion Repositories freemyipod

Rev

Rev 52 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52 Rev 71
Line 21... Line 21...
21
#ifndef __GCC_EXTENSIONS_H__
21
#ifndef __GCC_EXTENSIONS_H__
22
#define __GCC_EXTENSIONS_H__
22
#define __GCC_EXTENSIONS_H__
23
 
23
 
24
/* Support for some GCC extensions */
24
/* Support for some GCC extensions */
25
 
25
 
26
/* Compile time check of format for printf/scanf like functions */
-
 
27
#ifdef __GNUC__
-
 
28
#define ATTRIBUTE_PRINTF(fmt, arg1) __attribute__( ( format( printf, fmt, arg1 ) ) )
-
 
29
#define ATTRIBUTE_SCANF(fmt, arg1) __attribute__( ( format( scanf, fmt, arg1 ) ) )
-
 
30
#else
-
 
31
#define ATTRIBUTE_PRINTF(fmt, arg1)
-
 
32
#define ATTRIBUTE_SCANF(fmt, arg1)
-
 
33
#endif
-
 
34
 
-
 
35
 
-
 
36
/* Use to give gcc hints on which branch is most likely taken */
26
/* Use to give gcc hints on which branch is most likely taken */
37
#if defined(__GNUC__) && __GNUC__ >= 3
27
#if defined(__GNUC__) && __GNUC__ >= 3
38
#define LIKELY(x)   __builtin_expect(!!(x), 1)
28
#define LIKELY(x)   __builtin_expect(!!(x), 1)
39
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
29
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
40
#else
30
#else