1 1.1 joerg //===-- lib/mulsf3.c - Single-precision multiplication ------------*- C -*-===// 2 1.1 joerg // 3 1.1 joerg // The LLVM Compiler Infrastructure 4 1.1 joerg // 5 1.1 joerg // This file is dual licensed under the MIT and the University of Illinois Open 6 1.1 joerg // Source Licenses. See LICENSE.TXT for details. 7 1.1 joerg // 8 1.1 joerg //===----------------------------------------------------------------------===// 9 1.1 joerg // 10 1.1 joerg // This file implements single-precision soft-float multiplication 11 1.1 joerg // with the IEEE-754 default rounding (to nearest, ties to even). 12 1.1 joerg // 13 1.1 joerg //===----------------------------------------------------------------------===// 14 1.1 joerg 15 1.1 joerg #define SINGLE_PRECISION 16 1.2 rin #include "fp_mul_impl.inc" 17 1.1 joerg 18 1.2 rin COMPILER_RT_ABI fp_t __mulsf3(fp_t a, fp_t b) { 19 1.2 rin return __mulXf3__(a, b); 20 1.2 rin } 21 1.1 joerg 22 1.2 rin #if defined(__ARM_EABI__) 23 1.3 rin #if defined(COMPILER_RT_ARMHF_TARGET) 24 1.2 rin AEABI_RTABI fp_t __aeabi_fmul(fp_t a, fp_t b) { 25 1.2 rin return __mulsf3(a, b); 26 1.1 joerg } 27 1.3 rin #else 28 1.3 rin AEABI_RTABI fp_t __aeabi_fmul(fp_t a, fp_t b) COMPILER_RT_ALIAS(__mulsf3); 29 1.3 rin #endif 30 1.2 rin #endif 31