Path: blob/main/system/lib/llvm-libc/include/llvm-libc-macros/float16-macros.h
6172 views
//===-- Detection of _Float16 compiler builtin type -----------------------===//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_MACROS_FLOAT16_MACROS_H9#define LLVM_LIBC_MACROS_FLOAT16_MACROS_H1011#include "../llvm-libc-types/float128.h"1213#if defined(__FLT16_MANT_DIG__) && \14(!defined(__GNUC__) || __GNUC__ >= 13 || defined(__clang__)) && \15!defined(__arm__) && !defined(_M_ARM) && !defined(__riscv) && \16!defined(_WIN32)17#define LIBC_TYPES_HAS_FLOAT161819// TODO: This would no longer be required if HdrGen let us guard function20// declarations with multiple macros.21#ifdef LIBC_TYPES_HAS_FLOAT12822#define LIBC_TYPES_HAS_FLOAT16_AND_FLOAT12823#endif // LIBC_TYPES_HAS_FLOAT12824#endif2526#endif // LLVM_LIBC_MACROS_FLOAT16_MACROS_H272829