This adds support for 128-bit float versions of SCALE, NEAREST, MOD, MODULO, SET_EXPONENT, EXPONENT, FRACTION, SPACING and RRSPACING.
21 lines
651 B
C++
21 lines
651 B
C++
//===-- runtime/Float128Math/sqrt.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"
|
|
#include "numeric-template-specs.h"
|
|
|
|
namespace Fortran::runtime {
|
|
extern "C" {
|
|
|
|
#if LDBL_MANT_DIG == 113 || HAS_FLOAT128
|
|
F128Type RTDEF(SqrtF128)(F128Type x) { return SQRTTy<F128Type>::compute(x); }
|
|
#endif
|
|
|
|
} // extern "C"
|
|
} // namespace Fortran::runtime
|