| //===-- Extended-precision atan2 function ---------------------------------===// | |
| // | |
| // 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 | |
| // | |
| //===----------------------------------------------------------------------===// | |
| namespace LIBC_NAMESPACE_DECL { | |
| // TODO: Implement this for extended precision. | |
| LLVM_LIBC_FUNCTION(long double, atan2l, (long double y, long double x)) { | |
| return static_cast<long double>( | |
| atan2(static_cast<double>(y), static_cast<double>(x))); | |
| } | |
| } // namespace LIBC_NAMESPACE_DECL | |