| //===----------------------------------------------------------------------===// | |
| // | |
| // 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 | |
| // | |
| //===----------------------------------------------------------------------===// | |
| /// | |
| /// \file | |
| /// Implementation of nanf128 function. | |
| /// | |
| //===----------------------------------------------------------------------===// | |
| #include "src/math/nanf128.h" | |
| #include "src/__support/CPP/bit.h" | |
| #include "src/__support/math/nanf128.h" | |
| namespace LIBC_NAMESPACE_DECL { | |
| LLVM_LIBC_FUNCTION(float128, nanf128, (const char *arg)) { | |
| return cpp::bit_cast<float128>(math::nanf128(arg)); | |
| } | |
| } // namespace LIBC_NAMESPACE_DECL |