mulsf3.c 918 B

12345678910111213141516171819202122232425
  1. //===-- lib/mulsf3.c - Single-precision multiplication ------------*- C -*-===//
  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 single-precision soft-float multiplication
  10. // with the IEEE-754 default rounding (to nearest, ties to even).
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #define SINGLE_PRECISION
  14. #include "fp_mul_impl.inc"
  15. COMPILER_RT_ABI fp_t __mulsf3(fp_t a, fp_t b) { return __mulXf3__(a, b); }
  16. #if defined(__ARM_EABI__)
  17. #if defined(COMPILER_RT_ARMHF_TARGET)
  18. AEABI_RTABI fp_t __aeabi_fmul(fp_t a, fp_t b) { return __mulsf3(a, b); }
  19. #else
  20. COMPILER_RT_ALIAS(__mulsf3, __aeabi_fmul)
  21. #endif
  22. #endif