Stephen Canon | a51d51a | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 1 | //===-- lib/mulsf3.c - Single-precision multiplication ------------*- C -*-===// |
| 2 | // |
Chandler Carruth | 9d304d2 | 2019-01-19 10:56:40 +0000 | [diff] [blame] | 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 |
Stephen Canon | a51d51a | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 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 | //===----------------------------------------------------------------------===// |
Stephen Canon | 42ea60a | 2010-07-01 15:52:42 +0000 | [diff] [blame] | 13 | |
| 14 | #define SINGLE_PRECISION |
Joerg Sonnenberger | a205a4a | 2014-05-28 15:08:05 +0000 | [diff] [blame] | 15 | #include "fp_mul_impl.inc" |
Stephen Canon | 42ea60a | 2010-07-01 15:52:42 +0000 | [diff] [blame] | 16 | |
Petr Hosek | a3567d5 | 2019-04-28 21:53:32 +0000 | [diff] [blame] | 17 | COMPILER_RT_ABI fp_t __mulsf3(fp_t a, fp_t b) { return __mulXf3__(a, b); } |
Saleem Abdulrasool | ae9985e | 2017-05-16 16:41:37 +0000 | [diff] [blame] | 18 | |
| 19 | #if defined(__ARM_EABI__) |
Eli Friedman | 8e363af | 2017-10-03 21:25:07 +0000 | [diff] [blame] | 20 | #if defined(COMPILER_RT_ARMHF_TARGET) |
Petr Hosek | a3567d5 | 2019-04-28 21:53:32 +0000 | [diff] [blame] | 21 | AEABI_RTABI fp_t __aeabi_fmul(fp_t a, fp_t b) { return __mulsf3(a, b); } |
Eli Friedman | 8e363af | 2017-10-03 21:25:07 +0000 | [diff] [blame] | 22 | #else |
Petr Hosek | 30cd636 | 2019-04-29 00:46:23 +0000 | [diff] [blame] | 23 | COMPILER_RT_ALIAS(__mulsf3, __aeabi_fmul) |
Saleem Abdulrasool | ae9985e | 2017-05-16 16:41:37 +0000 | [diff] [blame] | 24 | #endif |
Eli Friedman | 8e363af | 2017-10-03 21:25:07 +0000 | [diff] [blame] | 25 | #endif |