10b57cec5SDimitry Andric //===-- fixtfti.c - Implement __fixtfti -----------------------------------===// 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 12*06c3fb27SDimitry Andric #if defined(CRT_HAS_TF_MODE) 130b57cec5SDimitry Andric typedef ti_int fixint_t; 140b57cec5SDimitry Andric typedef tu_int fixuint_t; 150b57cec5SDimitry Andric #include "fp_fixint_impl.inc" 160b57cec5SDimitry Andric __fixtfti(fp_t a)170b57cec5SDimitry AndricCOMPILER_RT_ABI ti_int __fixtfti(fp_t a) { return __fixint(a); } 180b57cec5SDimitry Andric #endif 19