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

24 lines
589 B
C
Raw Normal View History

2010-10-21 19:02:02 +00:00
/* ===-- fixsfdi.c - Implement __fixsfdi -----------------------------------===
*
* The LLVM Compiler Infrastructure
2010-10-21 19:02:02 +00:00
*
* 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"
2010-10-21 19:02:02 +00:00
2013-01-18 20:06:45 +00:00
ARM_EABI_FNALIAS(f2lz, fixsfdi)
2011-06-02 20:02:42 +00:00
typedef di_int fixint_t;
typedef du_int fixuint_t;
#include "fp_fixint_impl.inc"
2011-06-02 20:02:42 +00:00
COMPILER_RT_ABI di_int
__fixsfdi(fp_t a) {
return __fixint(a);
2010-10-21 19:02:02 +00:00
}