20 lines · c
1//===-- lib/truncxfbf2.c - long double -> bfloat conversion -------*- 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#if defined(CRT_HAS_TF_MODE) && __LDBL_MANT_DIG__ == 64 && defined(__x86_64__)10#define SRC_8011#define DST_BFLOAT12#include "fp_trunc_impl.inc"13 14COMPILER_RT_ABI dst_t __truncxfbf2(long double a) { return __truncXfYf2__(a); }15 16#endif17 18// Have at least one declaration to suppress warnings.19enum Unused { ReallyUnused };20