[libc++][Android] Allow testing libc++ with clang-r536225 (#116149)
[llvm-project.git] / flang / runtime / Float128Math / lgamma.cpp
blob54d0dd8083868583fc7dd6f7259356edb1b629ee
1 //===-- runtime/Float128Math/lgamma.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 //===----------------------------------------------------------------------===//
9 #include "math-entries.h"
11 namespace Fortran::runtime {
12 extern "C" {
14 #if HAS_LDBL128 || HAS_FLOAT128
15 CppTypeFor<TypeCategory::Real, 16> RTDEF(LgammaF128)(
16 CppTypeFor<TypeCategory::Real, 16> x) {
17 return Lgamma<true>::invoke(x);
19 #endif
21 } // extern "C"
22 } // namespace Fortran::runtime