//===-- runtime/Float128Math/nearest.cpp ----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "math-entries.h" namespace Fortran::runtime { extern "C" { #if LDBL_MANT_DIG == 113 || HAS_FLOAT128 CppTypeFor RTDEF(Nearest16)( CppTypeFor x, bool positive) { return Nextafter::invoke( x, positive ? F128_RT_INFINITY : -F128_RT_INFINITY); } #endif } // extern "C" } // namespace Fortran::runtime