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-exception
6//
7//===----------------------------------------------------------------------===//
8#define QUAD_PRECISION
9#include "fp_lib.h"
10
11#if defined(CRT_HAS_TF_MODE) && defined(__x86_64__)
12#define SRC_QUAD
13#define DST_BFLOAT
14#include "fp_trunc_impl.inc"
15
16COMPILER_RT_ABI dst_t __trunctfbf2(src_t a) { return __truncXfYf2__(a); }
17
18#endif
19

source code of compiler-rt/lib/builtins/trunctfbf2.c