HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
OMP TASK Pragma..........................................................................................139
OMP TASKWAIT Pragma..................................................................................139
OMP THREADPRIVATE Pragma..........................................................................139
OpenMP Clauses.................................................................................................139
private...........................................................................................................140
firstprivate.......................................................................................................140
lastprivate.......................................................................................................140
copyprivate.....................................................................................................140
if...................................................................................................................140
default...........................................................................................................141
shared...........................................................................................................141
copyin............................................................................................................141
reduction........................................................................................................141
nowait............................................................................................................141
ordered..........................................................................................................141
schedule.........................................................................................................141
num_threads...................................................................................................142
Attributes.............................................................................................................142
attribute aligned..............................................................................................142
attribute malloc...............................................................................................142
attribute non_exposing.....................................................................................143
attribute noreturn.............................................................................................144
attribute format................................................................................................144
attribute visibility.............................................................................................144
attribute warn_unused_result.............................................................................144
4 Preprocessing Directives.......................................................................................................146
Overview of the Preprocessor.................................................................................146
Syntax............................................................................................................146
Usage Guidelines............................................................................................147
Source File Inclusion (#include, #include_next).....................................................147
Syntax.......................................................................................................147
Description.................................................................................................148
Examples...................................................................................................148
Macro Replacement (#define, #undef)................................................................148
Syntax.......................................................................................................148
Description.................................................................................................149
Macros with Parameters...............................................................................149
Specifying String Literals with the # Operator..................................................150
Concatenating Tokens with the ## Operator ..................................................150
Example 1.............................................................................................150
Example 2.............................................................................................151
Using Macros to Define Constants.................................................................152
Other Macros.............................................................................................152
Example 1.............................................................................................153
Contents 11