10b57cec5SDimitry Andric //===-- fixtfsi.c - Implement __fixtfsi -----------------------------------===// 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 si_int fixint_t; 140b57cec5SDimitry Andric typedef su_int fixuint_t; 150b57cec5SDimitry Andric #include "fp_fixint_impl.inc" 160b57cec5SDimitry Andric __fixtfsi(fp_t a)170b57cec5SDimitry AndricCOMPILER_RT_ABI si_int __fixtfsi(fp_t a) { return __fixint(a); } 180b57cec5SDimitry Andric #endif 19