| 1 | //===-- lib/truncxfbf2.c - long double -> 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 | |
| 9 | #if defined(CRT_HAS_TF_MODE) && __LDBL_MANT_DIG__ == 64 && defined(__x86_64__) |
| 10 | #define SRC_80 |
| 11 | #define DST_BFLOAT |
| 12 | #include "fp_trunc_impl.inc" |
| 13 | |
| 14 | COMPILER_RT_ABI dst_t __truncxfbf2(long double a) { return __truncXfYf2__(a); } |
| 15 | |
| 16 | #endif |
| 17 | |
| 18 | // Have at least one declaration to suppress warnings. |
| 19 | enum Unused { ReallyUnused }; |
| 20 | |