xref: /freebsd/contrib/llvm-project/compiler-rt/lib/builtins/trunctfsf2.c (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
10b57cec5SDimitry Andric //===-- lib/trunctfsf2.c - quad -> single conversion --------------*- C -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric 
90b57cec5SDimitry Andric #define QUAD_PRECISION
100b57cec5SDimitry Andric #include "fp_lib.h"
110b57cec5SDimitry Andric 
1206c3fb27SDimitry Andric #if defined(CRT_HAS_TF_MODE)
130b57cec5SDimitry Andric #define SRC_QUAD
140b57cec5SDimitry Andric #define DST_SINGLE
150b57cec5SDimitry Andric #include "fp_trunc_impl.inc"
160b57cec5SDimitry Andric 
17*5f757f3fSDimitry Andric COMPILER_RT_ABI dst_t __trunctfsf2(src_t a) { return __truncXfYf2__(a); }
180b57cec5SDimitry Andric 
190b57cec5SDimitry Andric #endif
20