blob: cc2b05bd84f854d8087744d6f89745047fd16c63 [file] [log] [blame]
Edward O'Callaghan2bf62722009-08-05 04:02:56 +00001/* ===-- fixunssfsi.c - Implement __fixunssfsi -----------------------------===
2 *
3 * The LLVM Compiler Infrastructure
4 *
Howard Hinnant9ad441f2010-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'Callaghan2bf62722009-08-05 04:02:56 +00007 *
8 * ===----------------------------------------------------------------------===
9 *
10 * This file implements __fixunssfsi for the compiler_rt library.
11 *
12 * ===----------------------------------------------------------------------===
13 */
Daniel Dunbarb3a69012009-06-26 16:47:03 +000014
Pirama Arumuga Nainar7c915052015-04-08 08:58:29 -070015#define SINGLE_PRECISION
16#include "fp_lib.h"
17typedef su_int fixuint_t;
18#include "fp_fixuint_impl.inc"
Daniel Dunbarb3a69012009-06-26 16:47:03 +000019
Chandler Carruth0193b742012-06-22 21:09:15 +000020ARM_EABI_FNALIAS(f2uiz, fixunssfsi)
Anton Korobeynikov37b97d12011-04-19 17:51:24 +000021
Anton Korobeynikov1c5f89b2011-04-19 17:52:09 +000022COMPILER_RT_ABI su_int
Pirama Arumuga Nainar7c915052015-04-08 08:58:29 -070023__fixunssfsi(fp_t a) {
24 return __fixuint(a);
Daniel Dunbarb3a69012009-06-26 16:47:03 +000025}