blob: f045536d6857e096841c0f67c3c763bfea93a761 [file] [log] [blame]
Joerg Sonnenberger91bd6982015-03-11 21:13:56 +00001/* ===-- fixsfsi.c - Implement __fixsfsi -----------------------------------===
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 */
Stephen Canon4be0d7e2010-07-02 22:10:58 +000010
11#define SINGLE_PRECISION
12#include "fp_lib.h"
Joerg Sonnenberger91bd6982015-03-11 21:13:56 +000013typedef si_int fixint_t;
14typedef su_int fixuint_t;
15#include "fp_fixint_impl.inc"
Stephen Canon4be0d7e2010-07-02 22:10:58 +000016
Chandler Carruth321916a2012-06-22 21:09:15 +000017ARM_EABI_FNALIAS(f2iz, fixsfsi)
Anton Korobeynikov75e3c192011-04-19 17:51:24 +000018
Joerg Sonnenberger91bd6982015-03-11 21:13:56 +000019COMPILER_RT_ABI si_int
Anton Korobeynikove63da932011-04-19 17:52:09 +000020__fixsfsi(fp_t a) {
Joerg Sonnenberger91bd6982015-03-11 21:13:56 +000021 return __fixint(a);
Stephen Canon4be0d7e2010-07-02 22:10:58 +000022}