2010-10-21 19:02:02 +00:00
|
|
|
/* ===-- fixdfti.c - Implement __fixdfti -----------------------------------===
|
|
|
|
*
|
|
|
|
* The LLVM Compiler Infrastructure
|
|
|
|
*
|
2011-03-17 19:47:28 +00:00
|
|
|
* This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
* Source Licenses. See LICENSE.TXT for details.
|
2010-10-21 19:02:02 +00:00
|
|
|
*
|
|
|
|
* ===----------------------------------------------------------------------===
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "int_lib.h"
|
|
|
|
|
2015-01-07 19:55:37 +00:00
|
|
|
#ifdef CRT_HAS_128BIT
|
2015-03-14 12:40:19 +00:00
|
|
|
#define DOUBLE_PRECISION
|
|
|
|
#include "fp_lib.h"
|
2012-07-30 10:58:13 +00:00
|
|
|
|
2015-03-14 12:40:19 +00:00
|
|
|
typedef ti_int fixint_t;
|
|
|
|
typedef tu_int fixuint_t;
|
|
|
|
#include "fp_fixint_impl.inc"
|
2010-10-21 19:02:02 +00:00
|
|
|
|
2015-01-07 19:55:37 +00:00
|
|
|
COMPILER_RT_ABI ti_int
|
2015-03-14 12:40:19 +00:00
|
|
|
__fixdfti(fp_t a) {
|
|
|
|
return __fixint(a);
|
2010-10-21 19:02:02 +00:00
|
|
|
}
|
|
|
|
|
2015-01-07 19:55:37 +00:00
|
|
|
#endif /* CRT_HAS_128BIT */
|