multf3.c 790 B

12345678910111213141516171819202122232425
  1. //===-- lib/multf3.c - Quad-precision multiplication --------------*- 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 soft-float multiplication
  11. // with the IEEE-754 default rounding (to nearest, ties to even).
  12. //
  13. //===----------------------------------------------------------------------===//
  14. #define QUAD_PRECISION
  15. #include "fp_lib.h"
  16. #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
  17. #include "fp_mul_impl.inc"
  18. COMPILER_RT_ABI fp_t __multf3(fp_t a, fp_t b) {
  19. return __mulXf3__(a, b);
  20. }
  21. #endif