fixunsdfsi.c 743 B

12345678910111213141516171819202122
  1. //===-- fixunsdfsi.c - Implement __fixunsdfsi -----------------------------===//
  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 su_int fixuint_t;
  11. #include "fp_fixuint_impl.inc"
  12. COMPILER_RT_ABI su_int __fixunsdfsi(fp_t a) { return __fixuint(a); }
  13. #if defined(__ARM_EABI__)
  14. #if defined(COMPILER_RT_ARMHF_TARGET)
  15. AEABI_RTABI su_int __aeabi_d2uiz(fp_t a) { return __fixunsdfsi(a); }
  16. #else
  17. COMPILER_RT_ALIAS(__fixunsdfsi, __aeabi_d2uiz)
  18. #endif
  19. #endif