blob: 7dbea8001e14ead7c0382ac1f12e6a5bf3401bf3 [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 __fixunssfdi, truncating float ->
/// uint64_t conversion (saturating), on top of LLVM-libc's shared::fixunssfdi.
///
//===----------------------------------------------------------------------===//
#define SINGLE_PRECISION
#include "fp_lib.h"
#include "fp_libc_config.h"
#include "int_lib.h"
#include "shared/builtins/fixunssfdi.h"
extern "C" COMPILER_RT_ABI du_int __fixunssfdi(fp_t a) {
return LIBC_NAMESPACE::shared::fixunssfdi(a);
}