xref: /llvm-project/libc/src/math/generic/llogbf128.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
1aa95aa69Slntue //===-- Implementation of llogbf128 function ------------------------------===//
2aa95aa69Slntue //
3aa95aa69Slntue // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4aa95aa69Slntue // See https://llvm.org/LICENSE.txt for license information.
5aa95aa69Slntue // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6aa95aa69Slntue //
7aa95aa69Slntue //===----------------------------------------------------------------------===//
8aa95aa69Slntue 
9aa95aa69Slntue #include "src/math/llogbf128.h"
10aa95aa69Slntue #include "src/__support/FPUtil/ManipulationFunctions.h"
11aa95aa69Slntue #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
13aa95aa69Slntue 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
15aa95aa69Slntue 
16aa95aa69Slntue LLVM_LIBC_FUNCTION(long, llogbf128, (float128 x)) {
17aa95aa69Slntue   return fputil::intlogb<long>(x);
18aa95aa69Slntue }
19aa95aa69Slntue 
20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
21