1 //===-- floattisf.c - Implement __floattisf -------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file implements __floattisf for the compiler_rt library.
11 //===----------------------------------------------------------------------===//
19 #include "int_to_fp_impl.inc"
21 // Returns: convert a to a float, rounding toward even.
23 // Assumption: float is a IEEE 32 bit floating point type
24 // ti_int is a 128 bit integral type
26 // seee eeee emmm mmmm mmmm mmmm mmmm mmmm
28 COMPILER_RT_ABI
float __floattisf(ti_int a
) { return __floatXiYf__(a
); }
30 #endif // CRT_HAS_128BIT