Next: Contributing, Previous: Intrinsic Procedures, Up: Top
ISO_FORTRAN_ENVThe ISO_FORTRAN_ENV module provides the following scalar default-integer
named constants:
CHARACTER_STORAGE_SIZE:ERROR_UNIT:FILE_STORAGE_SIZE:INPUT_UNIT:*) in READ statement.
IOSTAT_END:IOSTAT_EOR:NUMERIC_STORAGE_SIZE:OUTPUT_UNIT:*) in WRITE statement.
ISO_C_BINDINGThe following intrinsic procedures are provided by the module; their definition can be found in the section Intrinsic Procedures of this manual.
C_ASSOCIATEDC_F_POINTERC_F_PROCPOINTERC_FUNLOCC_LOCThe ISO_C_BINDING module provides the following named constants of the
type integer, which can be used as KIND type parameter. Note that GNU
Fortran currently does not support the C_INT_FAST... KIND type
parameters (marked by an asterisk (*) in the list below).
The C_INT_FAST... parameters have therefore the value -2
and cannot be used as KIND type parameter of the INTEGER type.
In addition to the integer named constants required by the Fortran 2003
standard, GNU Fortran provides as an extension named constants for the
128-bit integer types supported by the C compiler: C_INT128_T,
C_INT_LEAST128_T, C_INT_FAST128_T.
| Fortran Type | Named constant | C type | Extension
|
INTEGER | C_INT | int
| |
INTEGER | C_SHORT | short int
| |
INTEGER | C_LONG | long int
| |
INTEGER | C_LONG_LONG | long long int
| |
INTEGER | C_SIGNED_CHAR | signed char/unsigned char
| |
INTEGER | C_SIZE_T | size_t
| |
INTEGER | C_INT8_T | int8_t
| |
INTEGER | C_INT16_T | int16_t
| |
INTEGER | C_INT32_T | int32_t
| |
INTEGER | C_INT64_T | int64_t
| |
INTEGER | C_INT128_T | int128_t | Ext.
|
INTEGER | C_INT_LEAST8_T | int_least8_t
| |
INTEGER | C_INT_LEAST16_T | int_least16_t
| |
INTEGER | C_INT_LEAST32_T | int_least32_t
| |
INTEGER | C_INT_LEAST64_T | int_least64_t
| |
INTEGER | C_INT_LEAST128_T | int_least128_t | Ext.
|
INTEGER | C_INT_FAST8_T* | int_fast8_t
| |
INTEGER | C_INT_FAST16_T* | int_fast16_t
| |
INTEGER | C_INT_FAST32_T* | int_fast32_t
| |
INTEGER | C_INT_FAST64_T* | int_fast64_t
| |
INTEGER | C_INT_FAST128_T* | int_fast128_t | Ext.
|
INTEGER | C_INTMAX_T | intmax_t
| |
INTEGER | C_INTPTR_T | intptr_t
| |
REAL | C_FLOAT | float
| |
REAL | C_DOUBLE | double
| |
REAL | C_LONG_DOUBLE | long double
| |
COMPLEX | C_FLOAT_COMPLEX | float _Complex
| |
COMPLEX | C_DOUBLE_COMPLEX | double _Complex
| |
COMPLEX | C_LONG_DOUBLE_COMPLEX | long double _Complex
| |
LOGICAL | C_BOOL | _Bool
| |
CHARACTER | C_CHAR | char
|
Additionally, the following (CHARACTER(KIND=C_CHAR)) are
defined.
| Name | C definition | Value
|
C_NULL_CHAR | null character | '\0'
|
C_ALERT | alert | '\a'
|
C_BACKSPACE | backspace | '\b'
|
C_FORM_FEED | form feed | '\f'
|
C_NEW_LINE | new line | '\n'
|
C_CARRIAGE_RETURN | carriage return | '\r'
|
C_HORIZONTAL_TAB | horizontal tab | '\t'
|
C_VERTICAL_TAB | vertical tab | '\v'
|
OMP_LIB and OMP_LIB_KINDSThe OpenMP Fortran runtime library routines are provided both in
a form of two Fortran 90 modules, named OMP_LIB and
OMP_LIB_KINDS, and in a form of a Fortran include file named
omp_lib.h. The procedures provided by OMP_LIB can be found
in the Introduction manual,
the named constants defined in the OMP_LIB_KINDS module are listed
below.
For details refer to the actual OpenMP Application Program Interface v3.0.
OMP_LIB_KINDS provides the following scalar default-integer
named constants:
omp_integer_kindomp_logical_kindomp_lock_kindomp_nest_lock_kindomp_sched_kind