blob: 862d7bd6c7af5c30dfb51725e6a1b7537a648223 [file] [log] [blame]
Stephen Hines2d1fdb22014-05-28 23:58:16 -07001/* ===-- fixunssfti.c - Implement __fixunssfti -----------------------------===
2 *
3 * The LLVM Compiler Infrastructure
4 *
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
7 *
8 * ===----------------------------------------------------------------------===
9 *
10 * This file implements __fixunssfti for the compiler_rt library.
11 *
12 * ===----------------------------------------------------------------------===
13 */
14
Pirama Arumuga Nainar7c915052015-04-08 08:58:29 -070015#define SINGLE_PRECISION
16#include "fp_lib.h"
Stephen Hines2d1fdb22014-05-28 23:58:16 -070017
Pirama Arumuga Nainar7c915052015-04-08 08:58:29 -070018#if defined(CRT_HAS_128BIT)
19typedef tu_int fixuint_t;
20#include "fp_fixuint_impl.inc"
Stephen Hines2d1fdb22014-05-28 23:58:16 -070021
22COMPILER_RT_ABI tu_int
Pirama Arumuga Nainar7c915052015-04-08 08:58:29 -070023__fixunssfti(fp_t a) {
24 return __fixuint(a);
Stephen Hines2d1fdb22014-05-28 23:58:16 -070025}
Pirama Arumuga Nainar7c915052015-04-08 08:58:29 -070026#endif