xref: /freebsd/contrib/llvm-project/compiler-rt/lib/builtins/fixunssfti.c (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1 //===-- fixunssfti.c - Implement __fixunssfti -----------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements __fixunssfti for the compiler_rt library.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #define SINGLE_PRECISION
14 #include "fp_lib.h"
15 
16 #if defined(CRT_HAS_128BIT)
17 typedef tu_int fixuint_t;
18 #include "fp_fixuint_impl.inc"
19 
20 COMPILER_RT_ABI tu_int __fixunssfti(fp_t a) { return __fixuint(a); }
21 #endif
22