xref: /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/builtins/fixunsdfti.c (revision ef84fd3bd8895f4e6be1e38baf19e6dc3255bc64)
1156cd587Sjoerg /* ===-- fixunsdfti.c - Implement __fixunsdfti -----------------------------===
2156cd587Sjoerg  *
3156cd587Sjoerg  *                     The LLVM Compiler Infrastructure
4156cd587Sjoerg  *
5156cd587Sjoerg  * This file is dual licensed under the MIT and the University of Illinois Open
6156cd587Sjoerg  * Source Licenses. See LICENSE.TXT for details.
7156cd587Sjoerg  *
8156cd587Sjoerg  * ===----------------------------------------------------------------------===
9156cd587Sjoerg  */
10156cd587Sjoerg 
11156cd587Sjoerg #include "int_lib.h"
12156cd587Sjoerg 
13156cd587Sjoerg #ifdef CRT_HAS_128BIT
14*ef84fd3bSjoerg #define DOUBLE_PRECISION
15*ef84fd3bSjoerg #include "fp_lib.h"
16*ef84fd3bSjoerg typedef tu_int fixuint_t;
17*ef84fd3bSjoerg #include "fp_fixuint_impl.inc"
18156cd587Sjoerg 
19f7f78b33Sjoerg COMPILER_RT_ABI tu_int
__fixunsdfti(fp_t a)20*ef84fd3bSjoerg __fixunsdfti(fp_t a) {
21*ef84fd3bSjoerg     return __fixuint(a);
22156cd587Sjoerg }
23156cd587Sjoerg #endif /* CRT_HAS_128BIT */
24