2024-02-29 09:05:43 -08:00
|
|
|
//===-- runtime/Float128Math/modulo-real.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" {
|
|
|
|
|
|
2024-03-05 13:36:48 -08:00
|
|
|
#if LDBL_MANT_DIG == 113 || HAS_FLOAT128
|
2024-02-29 09:05:43 -08:00
|
|
|
// MODULO (16.9.136)
|
|
|
|
|
F128Type RTDEF(ModuloReal16)(
|
|
|
|
|
F128Type x, F128Type p, const char *sourceFile, int sourceLine) {
|
|
|
|
|
return RealMod<true>(x, p, sourceFile, sourceLine);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
} // extern "C"
|
|
|
|
|
} // namespace Fortran::runtime
|