Loading...
Searching...
No Matches
Kinds

Definition

Provides constants for defining standard integer and real values.

Examples

The following example demonstrates some of the constants found in the benchmark_kinds module.

real(r8) a :: 0_r8
integer(i4) i :: 1_i4

Remarks

The constants are coming from the intrinsic module iso_fortran_env. If the compiler does not provide such intrinsic module then the compilation will fail.

Variables

◆ i1

integer, parameter, public i1 = int8

8-bit integer constant deriving from the int8 intrinsic constant of the iso_fortran_env module

Definition at line 31 of file Kinds.f90.

◆ i2

integer, parameter, public i2 = int16

16-bit integer constant deriving from the int16 intrinsic constant of the iso_fortran_env module

Definition at line 34 of file Kinds.f90.

◆ i4

integer, parameter, public i4 = int32

32-bit integer constant deriving from the int32 intrinsic constant of the iso_fortran_env module

Definition at line 37 of file Kinds.f90.

◆ i8

integer, parameter, public i8 = int64

64-bit integer constant deriving from the int64 intrinsic constant of the iso_fortran_env module

Definition at line 40 of file Kinds.f90.

◆ r16

integer, parameter, public r16 = real128

quadruple precision, 128-bit real constant deriving from the real128 intrinsic constant of the iso_fortran_env module

Definition at line 49 of file Kinds.f90.

◆ r4

integer, parameter, public r4 = real32

single precision, 32-bit real constant deriving from the real32 intrinsic constant of the iso_fortran_env module

Definition at line 43 of file Kinds.f90.

◆ r8

integer, parameter, public r8 = real64

double precision, 64-bit real constant deriving from the real64 intrinsic constant of the iso_fortran_env module

Definition at line 46 of file Kinds.f90.