1287516Sdim/* ===-- fixunstfsi.c - Implement __fixunstfsi -----------------------------===
2287516Sdim *
3287516Sdim *                     The LLVM Compiler Infrastructure
4287516Sdim *
5287516Sdim * This file is dual licensed under the MIT and the University of Illinois Open
6287516Sdim * Source Licenses. See LICENSE.TXT for details.
7287516Sdim *
8287516Sdim * ===----------------------------------------------------------------------===
9287516Sdim */
10287516Sdim
11287516Sdim#define QUAD_PRECISION
12287516Sdim#include "fp_lib.h"
13287516Sdim
14287516Sdim#if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
15287516Sdimtypedef su_int fixuint_t;
16287516Sdim#include "fp_fixuint_impl.inc"
17287516Sdim
18287516SdimCOMPILER_RT_ABI su_int
19287516Sdim__fixunstfsi(fp_t a) {
20287516Sdim    return __fixuint(a);
21287516Sdim}
22287516Sdim#endif
23