brintos

brintos / llvm-project-archived public Read only

0
0
Text · 942 B · 7758990 Raw
31 lines · c
1//===-- floattisf.c - Implement __floattisf -------------------------------===//2//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-exception6//7//===----------------------------------------------------------------------===//8//9// This file implements __floattisf for the compiler_rt library.10//11//===----------------------------------------------------------------------===//12 13#include "int_lib.h"14 15#ifdef CRT_HAS_128BIT16 17#define SRC_I12818#define DST_SINGLE19#include "int_to_fp_impl.inc"20 21// Returns: convert a to a float, rounding toward even.22 23// Assumption: float is a IEEE 32 bit floating point type24//             ti_int is a 128 bit integral type25 26// seee eeee emmm mmmm mmmm mmmm mmmm mmmm27 28COMPILER_RT_ABI float __floattisf(ti_int a) { return __floatXiYf__(a); }29 30#endif // CRT_HAS_128BIT31