fixunssfsi.c 896 B

1234567891011121314151617181920212223242526
  1. //===-- fixunssfsi.c - Implement __fixunssfsi -----------------------------===//
  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. //
  9. // This file implements __fixunssfsi for the compiler_rt library.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #define SINGLE_PRECISION
  13. #include "fp_lib.h"
  14. typedef su_int fixuint_t;
  15. #include "fp_fixuint_impl.inc"
  16. COMPILER_RT_ABI su_int __fixunssfsi(fp_t a) { return __fixuint(a); }
  17. #if defined(__ARM_EABI__)
  18. #if defined(COMPILER_RT_ARMHF_TARGET)
  19. AEABI_RTABI su_int __aeabi_f2uiz(fp_t a) { return __fixunssfsi(a); }
  20. #else
  21. COMPILER_RT_ALIAS(__fixunssfsi, __aeabi_f2uiz)
  22. #endif
  23. #endif