2010-07-02 01:58:24 +08:00
|
|
|
//===-- lib/mulsf3.c - Single-precision multiplication ------------*- C -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2010-11-17 06:13:33 +08:00
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
2010-07-02 01:58:24 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements single-precision soft-float multiplication
|
|
|
|
// with the IEEE-754 default rounding (to nearest, ties to even).
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2010-07-01 23:52:42 +08:00
|
|
|
|
|
|
|
#define SINGLE_PRECISION
|
2014-05-28 23:08:05 +08:00
|
|
|
#include "fp_mul_impl.inc"
|
2010-07-01 23:52:42 +08:00
|
|
|
|
2014-05-28 23:08:05 +08:00
|
|
|
COMPILER_RT_ABI fp_t __mulsf3(fp_t a, fp_t b) {
|
|
|
|
return __mulXf3__(a, b);
|
2010-07-01 23:52:42 +08:00
|
|
|
}
|
2017-05-17 00:41:37 +08:00
|
|
|
|
|
|
|
#if defined(__ARM_EABI__)
|
2017-10-04 05:25:07 +08:00
|
|
|
#if defined(COMPILER_RT_ARMHF_TARGET)
|
2017-05-17 00:41:37 +08:00
|
|
|
AEABI_RTABI fp_t __aeabi_fmul(fp_t a, fp_t b) {
|
|
|
|
return __mulsf3(a, b);
|
|
|
|
}
|
2017-10-04 05:25:07 +08:00
|
|
|
#else
|
|
|
|
AEABI_RTABI fp_t __aeabi_fmul(fp_t a, fp_t b) COMPILER_RT_ALIAS(__mulsf3);
|
|
|
|
#endif
|
2017-05-17 00:41:37 +08:00
|
|
|
#endif
|