[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / compiler-rt / lib / builtins / trunctfbf2.c
blobcd3c761aa62f315a71fc9e88416ffabf08207aba
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"
11 #if defined(CRT_HAS_TF_MODE) && defined(__x86_64__)
12 #define SRC_QUAD
13 #define DST_BFLOAT
14 #include "fp_trunc_impl.inc"
16 COMPILER_RT_ABI dst_t __trunctfbf2(src_t a) { return __truncXfYf2__(a); }
18 #endif