1156cd587Sjoerg /* ===-- fixdfti.c - Implement __fixdfti -----------------------------------=== 2156cd587Sjoerg * 3156cd587Sjoerg * The LLVM Compiler Infrastructure 4156cd587Sjoerg * 5156cd587Sjoerg * This file is dual licensed under the MIT and the University of Illinois Open 6156cd587Sjoerg * Source Licenses. See LICENSE.TXT for details. 7156cd587Sjoerg * 8156cd587Sjoerg * ===----------------------------------------------------------------------=== 9156cd587Sjoerg */ 10156cd587Sjoerg 11156cd587Sjoerg #include "int_lib.h" 12156cd587Sjoerg 13156cd587Sjoerg #ifdef CRT_HAS_128BIT 14*ef84fd3bSjoerg #define DOUBLE_PRECISION 15*ef84fd3bSjoerg #include "fp_lib.h" 16156cd587Sjoerg 17*ef84fd3bSjoerg typedef ti_int fixint_t; 18*ef84fd3bSjoerg typedef tu_int fixuint_t; 19*ef84fd3bSjoerg #include "fp_fixint_impl.inc" 20156cd587Sjoerg 21f7f78b33Sjoerg COMPILER_RT_ABI ti_int __fixdfti(fp_t a)22*ef84fd3bSjoerg__fixdfti(fp_t a) { 23*ef84fd3bSjoerg return __fixint(a); 24156cd587Sjoerg } 25156cd587Sjoerg 26156cd587Sjoerg #endif /* CRT_HAS_128BIT */ 27