35 lines · c
1//===-- Implementation header for frexpf16 ----------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_SRC___SUPPORT_MATH_FREXPF16_H10#define LLVM_LIBC_SRC___SUPPORT_MATH_FREXPF16_H11 12#include "include/llvm-libc-macros/float16-macros.h"13 14#ifdef LIBC_TYPES_HAS_FLOAT1615 16#include "src/__support/FPUtil/ManipulationFunctions.h"17#include "src/__support/common.h"18#include "src/__support/macros/config.h"19 20namespace LIBC_NAMESPACE_DECL {21 22namespace math {23 24LIBC_INLINE static constexpr float16 frexpf16(float16 x, int *exp) {25 return fputil::frexp(x, *exp);26}27 28} // namespace math29 30} // namespace LIBC_NAMESPACE_DECL31 32#endif // LIBC_TYPES_HAS_FLOAT1633 34#endif // LLVM_LIBC_SRC___SUPPORT_MATH_FREXPF16_H35