Edward O'Callaghan | 4856eef | 2009-08-05 04:02:56 +0000 | [diff] [blame] | 1 | /* ===-- fixunsdfti.c - Implement __fixunsdfti -----------------------------=== |
| 2 | * |
| 3 | * The LLVM Compiler Infrastructure |
| 4 | * |
Howard Hinnant | 5b791f6 | 2010-11-16 22:13:33 +0000 | [diff] [blame] | 5 | * This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | * Source Licenses. See LICENSE.TXT for details. |
Edward O'Callaghan | 4856eef | 2009-08-05 04:02:56 +0000 | [diff] [blame] | 7 | * |
| 8 | * ===----------------------------------------------------------------------=== |
Edward O'Callaghan | 4856eef | 2009-08-05 04:02:56 +0000 | [diff] [blame] | 9 | */ |
Daniel Dunbar | fd08999 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 10 | |
Daniel Dunbar | fd08999 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 11 | #include "int_lib.h" |
| 12 | |
Joerg Sonnenberger | 938b0df | 2014-02-21 23:53:03 +0000 | [diff] [blame] | 13 | #ifdef CRT_HAS_128BIT |
Joerg Sonnenberger | 91bd698 | 2015-03-11 21:13:56 +0000 | [diff] [blame] | 14 | #define DOUBLE_PRECISION |
| 15 | #include "fp_lib.h" |
| 16 | typedef tu_int fixuint_t; |
| 17 | #include "fp_fixuint_impl.inc" |
Daniel Dunbar | fd08999 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 18 | |
Joerg Sonnenberger | 6e99daa | 2014-03-01 15:30:50 +0000 | [diff] [blame] | 19 | COMPILER_RT_ABI tu_int |
Derek Schuff | de036eb | 2015-05-01 16:02:16 +0000 | [diff] [blame] | 20 | __fixunsdfti(fp_t a) { |
Joerg Sonnenberger | 91bd698 | 2015-03-11 21:13:56 +0000 | [diff] [blame] | 21 | return __fixuint(a); |
Daniel Dunbar | fd08999 | 2009-06-26 16:47:03 +0000 | [diff] [blame] | 22 | } |
Joerg Sonnenberger | 938b0df | 2014-02-21 23:53:03 +0000 | [diff] [blame] | 23 | #endif /* CRT_HAS_128BIT */ |