fixunstfti.c 597 B

12345678910111213141516171819202122
  1. /* ===-- fixunstfsi.c - Implement __fixunstfsi -----------------------------===
  2. *
  3. * The LLVM Compiler Infrastructure
  4. *
  5. * This file is dual licensed under the MIT and the University of Illinois Open
  6. * Source Licenses. See LICENSE.TXT for details.
  7. *
  8. * ===----------------------------------------------------------------------===
  9. */
  10. #define QUAD_PRECISION
  11. #include "fp_lib.h"
  12. #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
  13. typedef tu_int fixuint_t;
  14. #include "fp_fixuint_impl.inc"
  15. COMPILER_RT_ABI tu_int
  16. __fixunstfti(fp_t a) {
  17. return __fixuint(a);
  18. }
  19. #endif