1! Copyright (c) 2019, NVIDIA CORPORATION.  All rights reserved.
2!
3! Licensed under the Apache License, Version 2.0 (the "License");
4! you may not use this file except in compliance with the License.
5! You may obtain a copy of the License at
6!
7!     http://www.apache.org/licenses/LICENSE-2.0
8!
9! Unless required by applicable law or agreed to in writing, software
10! distributed under the License is distributed on an "AS IS" BASIS,
11! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12! See the License for the specific language governing permissions and
13! limitations under the License.
14
15! See Fortran 2018, clause 17.2
16
17module ieee_features
18
19  type :: ieee_features_type
20    private
21    integer(kind=1) :: feature = 0
22  end type ieee_features_type
23
24  type(ieee_features_type), parameter :: &
25    ieee_datatype = ieee_features_type(1), &
26    ieee_denormal = ieee_features_type(2), &
27    ieee_divide = ieee_features_type(3), &
28    ieee_halting = ieee_features_type(4), &
29    ieee_inexact_flag = ieee_features_type(5), &
30    ieee_inf = ieee_features_type(6), &
31    ieee_invalid_flag = ieee_features_type(7), &
32    ieee_nan = ieee_features_type(8), &
33    ieee_rounding = ieee_features_type(9), &
34    ieee_sqrt = ieee_features_type(10), &
35    ieee_subnormal = ieee_features_type(11), &
36    ieee_underflow_flag = ieee_features_type(12)
37
38end module ieee_features
39