xref: /llvm-project/libc/src/math/generic/llogbf.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
1aa95aa69Slntue //===-- Implementation of llogbf 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/llogbf.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, llogbf, (float x)) { return fputil::intlogb<long>(x); }
17aa95aa69Slntue 
18*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
19