blob: 9593153745c5b6c2d445df4e8d7f3a32baedff67 [file] [log] [blame]
Edward O'Callaghan4856eef2009-08-05 04:02:56 +00001/* ===-- fixunssfti.c - Implement __fixunssfti -----------------------------===
2 *
3 * The LLVM Compiler Infrastructure
4 *
Howard Hinnant5b791f62010-11-16 22:13:33 +00005 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
Edward O'Callaghan4856eef2009-08-05 04:02:56 +00007 *
8 * ===----------------------------------------------------------------------===
9 *
10 * This file implements __fixunssfti for the compiler_rt library.
11 *
12 * ===----------------------------------------------------------------------===
13 */
Daniel Dunbarfd089992009-06-26 16:47:03 +000014
Joerg Sonnenberger91bd6982015-03-11 21:13:56 +000015#if defined(CRT_HAS_128BIT)
16typedef tu_int fixuint_t;
17#include "fp_fixuint_impl.inc"
Daniel Dunbarfd089992009-06-26 16:47:03 +000018
Joerg Sonnenberger6e99daa2014-03-01 15:30:50 +000019COMPILER_RT_ABI tu_int
Joerg Sonnenberger91bd6982015-03-11 21:13:56 +000020__fixunssfti(fp_t a) {
21 return __fixuint(a);
Daniel Dunbarfd089992009-06-26 16:47:03 +000022}
Joerg Sonnenberger91bd6982015-03-11 21:13:56 +000023#endif