fixsfti.c 633 B

123456789101112131415161718192021
  1. //===-- fixsfti.c - Implement __fixsfti -----------------------------------===//
  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. #include "int_lib.h"
  9. #ifdef CRT_HAS_128BIT
  10. #define SINGLE_PRECISION
  11. #include "fp_lib.h"
  12. typedef ti_int fixint_t;
  13. typedef tu_int fixuint_t;
  14. #include "fp_fixint_impl.inc"
  15. COMPILER_RT_ABI ti_int __fixsfti(fp_t a) { return __fixint(a); }
  16. #endif // CRT_HAS_128BIT