fixtfsi.c 841 B

1234567891011121314151617181920212223242526
  1. //===-- lib/fixtfsi.c - Quad-precision -> integer conversion ------*- C -*-===//
  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. // This file implements quad-precision to integer conversion for the
  11. // compiler-rt library. No range checking is performed; the behavior of this
  12. // conversion is undefined for out of range values in the C standard.
  13. //
  14. //===----------------------------------------------------------------------===//
  15. #define QUAD_PRECISION
  16. #include "fp_lib.h"
  17. #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
  18. #include "fp_fixsi_impl.inc"
  19. COMPILER_RT_ABI int __fixtfsi(fp_t a) {
  20. return __fixXsi(a);
  21. }
  22. #endif