fixdfsi.c 755 B

1234567891011121314151617181920212223
  1. //===-- fixdfsi.c - Implement __fixdfsi -----------------------------------===//
  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-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #define DOUBLE_PRECISION
  9. #include "fp_lib.h"
  10. typedef si_int fixint_t;
  11. typedef su_int fixuint_t;
  12. #include "fp_fixint_impl.inc"
  13. COMPILER_RT_ABI si_int __fixdfsi(fp_t a) { return __fixint(a); }
  14. #if defined(__ARM_EABI__)
  15. #if defined(COMPILER_RT_ARMHF_TARGET)
  16. AEABI_RTABI si_int __aeabi_d2iz(fp_t a) { return __fixdfsi(a); }
  17. #else
  18. COMPILER_RT_ALIAS(__fixdfsi, __aeabi_d2iz)
  19. #endif
  20. #endif