2010-10-21 19:02:02 +00:00
|
|
|
/* ===-- fixsfdi.c - Implement __fixsfdi -----------------------------------===
|
|
|
|
*
|
2015-03-14 12:40:19 +00:00
|
|
|
* The LLVM Compiler Infrastructure
|
2010-10-21 19:02:02 +00:00
|
|
|
*
|
2011-03-17 19:47:28 +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
|
|
|
*
|
|
|
|
* ===----------------------------------------------------------------------===
|
|
|
|
*/
|
|
|
|
|
2015-03-14 12:40:19 +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
|
|
|
|
2015-03-14 12:40:19 +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
|
2015-03-14 12:40:19 +00:00
|
|
|
__fixsfdi(fp_t a) {
|
|
|
|
return __fixint(a);
|
2010-10-21 19:02:02 +00:00
|
|
|
}
|