blob: bfe1b8be533c156bcd2377f7ed362ca2e6b4c7c2 [file] [edit]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// This file implements compiler-rt's __floatdisf, int64_t -> float conversion
/// (round to nearest), on top of LLVM-libc's shared::floatdisf.
///
//===----------------------------------------------------------------------===//
#define SINGLE_PRECISION
#include "fp_lib.h"
#include "fp_libc_config.h"
#include "int_lib.h"
#include "shared/builtins/floatdisf.h"
extern "C" COMPILER_RT_ABI fp_t __floatdisf(di_int a) {
return LIBC_NAMESPACE::shared::floatdisf(a);
}