Path: blob/main/contrib/llvm-project/libc/src/__support/math/frexpf16.h
213799 views
//===-- Implementation header for frexpf16 ----------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIBC_SRC___SUPPORT_MATH_FREXPF16_H9#define LLVM_LIBC_SRC___SUPPORT_MATH_FREXPF16_H1011#include "include/llvm-libc-macros/float16-macros.h"1213#ifdef LIBC_TYPES_HAS_FLOAT161415#include "src/__support/FPUtil/ManipulationFunctions.h"16#include "src/__support/common.h"17#include "src/__support/macros/config.h"1819namespace LIBC_NAMESPACE_DECL {2021namespace math {2223static constexpr float16 frexpf16(float16 x, int *exp) {24return fputil::frexp(x, *exp);25}2627} // namespace math2829} // namespace LIBC_NAMESPACE_DECL3031#endif // LIBC_TYPES_HAS_FLOAT163233#endif // LLVM_LIBC_SRC___SUPPORT_MATH_FREXPF16_H343536