blob: f8046a02632b5381cc7cf2590a0a1a3ab1edca36 [file] [log] [blame]
Edward O'Callaghan4856eef2009-08-05 04:02:56 +00001/* ===-- fixunsdfti.c - Implement __fixunsdfti -----------------------------===
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 * ===----------------------------------------------------------------------===
Edward O'Callaghan4856eef2009-08-05 04:02:56 +00009 */
Daniel Dunbarfd089992009-06-26 16:47:03 +000010
Daniel Dunbarfd089992009-06-26 16:47:03 +000011#include "int_lib.h"
12
Joerg Sonnenberger938b0df2014-02-21 23:53:03 +000013#ifdef CRT_HAS_128BIT
Joerg Sonnenberger91bd6982015-03-11 21:13:56 +000014#define DOUBLE_PRECISION
15#include "fp_lib.h"
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
Derek Schuffde036eb2015-05-01 16:02:16 +000020__fixunsdfti(fp_t a) {
Joerg Sonnenberger91bd6982015-03-11 21:13:56 +000021 return __fixuint(a);
Daniel Dunbarfd089992009-06-26 16:47:03 +000022}
Joerg Sonnenberger938b0df2014-02-21 23:53:03 +000023#endif /* CRT_HAS_128BIT */