The following macros allow to make GCC extensions portable, and to have a code which can be compiled with any C compiler.  
More...
| 
Macros | 
| #define | STARPU_GNUC_PREREQ(maj, min) | 
| #define | STARPU_UNLIKELY(expr) | 
| #define | STARPU_LIKELY(expr) | 
| #define | STARPU_ATTRIBUTE_UNUSED | 
| #define | STARPU_ATTRIBUTE_INTERNAL | 
| #define | STARPU_ATTRIBUTE_MALLOC | 
| #define | STARPU_ATTRIBUTE_WARN_UNUSED_RESULT | 
| #define | STARPU_ATTRIBUTE_PURE | 
| #define | STARPU_ATTRIBUTE_ALIGNED(size) | 
| #define | STARPU_WARN_UNUSED_RESULT | 
| #define | STARPU_POISON_PTR | 
| #define | STARPU_MIN(a, b) | 
| #define | STARPU_MAX(a, b) | 
| #define | STARPU_ASSERT(x) | 
| #define | STARPU_ASSERT_MSG(x, msg,...) | 
| #define | STARPU_ABORT() | 
| #define | STARPU_ABORT_MSG(msg,...) | 
| #define | STARPU_CHECK_RETURN_VALUE(err, message,...) | 
| #define | STARPU_CHECK_RETURN_VALUE_IS(err, value, message,...) | 
| #define | STARPU_RMB() | 
| #define | STARPU_WMB() | 
Detailed Description
The following macros allow to make GCC extensions portable, and to have a code which can be compiled with any C compiler. 
Macro Definition Documentation
      
        
          | #define STARPU_GNUC_PREREQ | ( |  | maj, | 
        
          |  |  |  | min | 
        
          |  | ) |  |  | 
      
 
Return true (non-zero) if GCC version MAJ.MIN or later is being used (macro taken from glibc.) 
 
 
      
        
          | #define STARPU_UNLIKELY | ( |  | expr | ) |  | 
      
 
When building with a GNU C Compiler, this macro allows programmers to mark an expression as unlikely. 
 
 
      
        
          | #define STARPU_LIKELY | ( |  | expr | ) |  | 
      
 
When building with a GNU C Compiler, this macro allows programmers to mark an expression as likely. 
 
 
      
        
          | #define STARPU_ATTRIBUTE_UNUSED | 
      
 
When building with a GNU C Compiler, this macro is defined to __attribute__((unused)) 
 
 
      
        
          | #define STARPU_ATTRIBUTE_INTERNAL | 
      
 
When building with a GNU C Compiler, this macro is defined to __attribute__((visibility ("internal"))) 
 
 
      
        
          | #define STARPU_ATTRIBUTE_MALLOC | 
      
 
When building with a GNU C Compiler, this macro is defined to __attribute__((malloc)) 
 
 
      
        
          | #define STARPU_ATTRIBUTE_WARN_UNUSED_RESULT | 
      
 
When building with a GNU C Compiler, this macro is defined to __attribute__((warn_unused_result)) 
 
 
      
        
          | #define STARPU_ATTRIBUTE_PURE | 
      
 
When building with a GNU C Compiler, this macro is defined to __attribute__((pure)) 
 
 
      
        
          | #define STARPU_ATTRIBUTE_ALIGNED | ( |  | size | ) |  | 
      
 
When building with a GNU C Compiler, this macro is defined to__attribute__((aligned(size))) 
 
 
      
        
          | #define STARPU_WARN_UNUSED_RESULT | 
      
 
When building with a GNU C Compiler, this macro is defined to__attribute__((__warn_unused_result__)) 
 
 
      
        
          | #define STARPU_POISON_PTR | 
      
 
This macro defines a value which can be used to mark pointers as invalid values. 
 
 
      
        
          | #define STARPU_MIN | ( |  | a, | 
        
          |  |  |  | b | 
        
          |  | ) |  |  | 
      
 
This macro returns the min of the two parameters. 
 
 
      
        
          | #define STARPU_MAX | ( |  | a, | 
        
          |  |  |  | b | 
        
          |  | ) |  |  | 
      
 
This macro returns the max of the two parameters. 
 
 
      
        
          | #define STARPU_ASSERT | ( |  | x | ) |  | 
      
 
Unless StarPU has been configured with the option --enable-fast, this macro will abort if the expression is false. 
 
 
      
        
          | #define STARPU_ASSERT_MSG | ( |  | x, | 
        
          |  |  |  | msg, | 
        
          |  |  |  | ... | 
        
          |  | ) |  |  | 
      
 
Unless StarPU has been configured with the option --enable-fast, this macro will abort if the expression is false. The given message will be displayed. 
 
 
This macro aborts the program. 
 
 
      
        
          | #define STARPU_ABORT_MSG | ( |  | msg, | 
        
          |  |  |  | ... | 
        
          |  | ) |  |  | 
      
 
This macro aborts the program, and displays the given message. 
 
 
      
        
          | #define STARPU_CHECK_RETURN_VALUE | ( |  | err, | 
        
          |  |  |  | message, | 
        
          |  |  |  | ... | 
        
          |  | ) |  |  | 
      
 
If err has a value which is not 0, the given message is displayed before aborting. 
 
 
      
        
          | #define STARPU_CHECK_RETURN_VALUE_IS | ( |  | err, | 
        
          |  |  |  | value, | 
        
          |  |  |  | message, | 
        
          |  |  |  | ... | 
        
          |  | ) |  |  | 
      
 
If err has a value which is not value, the given message is displayed before aborting. 
 
 
This macro can be used to do a synchronization. 
 
 
This macro can be used to do a synchronization. 
 
 
Function Documentation
  
  | 
        
          | int starpu_get_env_number | ( | const char * | str | ) |  |  | static | 
 
If str is the name of a existing environment variable which is defined to an integer, the function returns the value of the integer. It returns 0 otherwise.