Warning: This file is not a C or C++ file. It does not have highlighting.

1//===-- include/flang/Runtime/exceptions.h ----------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9// Map Fortran ieee_arithmetic module exceptions to fenv.h exceptions.
10
11#ifndef FORTRAN_RUNTIME_EXCEPTIONS_H_
12#define FORTRAN_RUNTIME_EXCEPTIONS_H_
13
14#include "flang/Runtime/entry-names.h"
15#include "flang/Runtime/magic-numbers.h"
16#include <cinttypes>
17
18namespace Fortran::runtime {
19
20class Descriptor;
21
22extern "C" {
23
24// Map a (single) IEEE_FLAG_TYPE exception value to a libm fenv.h value.
25// This could be extended to handle sets of exceptions, but there is no
26// current use case for that. This mapping is done at runtime to support
27// cross compilation.
28std::int32_t RTNAME(MapException)(std::int32_t except);
29
30} // extern "C"
31} // namespace Fortran::runtime
32#endif // FORTRAN_RUNTIME_EXCEPTIONS_H_
33

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of flang/include/flang/Runtime/exceptions.h