1//===-- runtime/Float128Math/round.cpp ------------------------------------===//
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// Round to nearest integer, away from zero.
10//
11//===----------------------------------------------------------------------===//
12
13#include "math-entries.h"
14
15namespace Fortran::runtime {
16extern "C" {
17
18#if LDBL_MANT_DIG == 113 || HAS_FLOAT128
19CppTypeFor<TypeCategory::Real, 16> RTDEF(RoundF128)(
20 CppTypeFor<TypeCategory::Real, 16> x) {
21 return Round<true>::invoke(x);
22}
23#endif
24
25} // extern "C"
26} // namespace Fortran::runtime
27

source code of flang/runtime/Float128Math/round.cpp