19 lines · c
1//===--------- lib/trunctfbf2.c - quad -> 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#define QUAD_PRECISION9#include "fp_lib.h"10 11#if defined(CRT_HAS_TF_MODE) && defined(__x86_64__)12#define SRC_QUAD13#define DST_BFLOAT14#include "fp_trunc_impl.inc"15 16COMPILER_RT_ABI dst_t __trunctfbf2(src_t a) { return __truncXfYf2__(a); }17 18#endif19