1276789Sdim/* ===-- fixunssfti.c - Implement __fixunssfti -----------------------------=== 2276789Sdim * 3276789Sdim * The LLVM Compiler Infrastructure 4276789Sdim * 5276789Sdim * This file is dual licensed under the MIT and the University of Illinois Open 6276789Sdim * Source Licenses. See LICENSE.TXT for details. 7276789Sdim * 8276789Sdim * ===----------------------------------------------------------------------=== 9276789Sdim * 10276789Sdim * This file implements __fixunssfti for the compiler_rt library. 11276789Sdim * 12276789Sdim * ===----------------------------------------------------------------------=== 13276789Sdim */ 14276789Sdim 15280181Semaste#define SINGLE_PRECISION 16280181Semaste#include "fp_lib.h" 17280181Semaste 18279981Sdim#if defined(CRT_HAS_128BIT) 19279981Sdimtypedef tu_int fixuint_t; 20279981Sdim#include "fp_fixuint_impl.inc" 21276789Sdim 22276789SdimCOMPILER_RT_ABI tu_int 23279981Sdim__fixunssfti(fp_t a) { 24279981Sdim return __fixuint(a); 25276789Sdim} 26279981Sdim#endif 27