blob: 41041c81eb5402d463cf29d137d39a9b9371f1d2 [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 __fixdfdi, truncating double -> int64_t
/// conversion (saturating), on top of LLVM-libc's shared::fixdfdi.
///
//===----------------------------------------------------------------------===//
#define DOUBLE_PRECISION
#include "fp_lib.h"
#include "fp_libc_config.h"
#include "int_lib.h"
#include "shared/builtins/fixdfdi.h"
extern "C" COMPILER_RT_ABI di_int __fixdfdi(fp_t a) {
return LIBC_NAMESPACE::shared::fixdfdi(a);
}