freebsd-dev/contrib/compiler-rt/lib/builtins/fixsfsi.c

23 lines
588 B
C
Raw Normal View History

/* ===-- fixsfsi.c - Implement __fixsfsi -----------------------------------===
*
* The LLVM Compiler Infrastructure
*
* This file is dual licensed under the MIT and the University of Illinois Open
* Source Licenses. See LICENSE.TXT for details.
*
* ===----------------------------------------------------------------------===
*/
2010-10-21 19:02:02 +00:00
#define SINGLE_PRECISION
#include "fp_lib.h"
typedef si_int fixint_t;
typedef su_int fixuint_t;
#include "fp_fixint_impl.inc"
2010-10-21 19:02:02 +00:00
2012-07-30 10:58:13 +00:00
ARM_EABI_FNALIAS(f2iz, fixsfsi)
2011-06-02 20:02:42 +00:00
COMPILER_RT_ABI si_int
2011-06-02 20:02:42 +00:00
__fixsfsi(fp_t a) {
return __fixint(a);
2010-10-21 19:02:02 +00:00
}