1aa95aa69Slntue //===-- Implementation of llogbl 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/llogbl.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, llogbl, (long double x)) { 17aa95aa69Slntue return fputil::intlogb<long>(x); 18aa95aa69Slntue } 19aa95aa69Slntue 20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 21