1*700637cbSDimitry Andric //===--------- lib/trunctfbf2.c - quad -> bfloat conversion -------*- C -*-===// 2*700637cbSDimitry Andric // 3*700637cbSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*700637cbSDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*700637cbSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*700637cbSDimitry Andric // 7*700637cbSDimitry Andric //===----------------------------------------------------------------------===// 8*700637cbSDimitry Andric #define QUAD_PRECISION 9*700637cbSDimitry Andric #include "fp_lib.h" 10*700637cbSDimitry Andric 11*700637cbSDimitry Andric #if defined(CRT_HAS_TF_MODE) && defined(__x86_64__) 12*700637cbSDimitry Andric #define SRC_QUAD 13*700637cbSDimitry Andric #define DST_BFLOAT 14*700637cbSDimitry Andric #include "fp_trunc_impl.inc" 15*700637cbSDimitry Andric __trunctfbf2(src_t a)16*700637cbSDimitry AndricCOMPILER_RT_ABI dst_t __trunctfbf2(src_t a) { return __truncXfYf2__(a); } 17*700637cbSDimitry Andric 18*700637cbSDimitry Andric #endif 19