xref: /llvm-project/compiler-rt/lib/builtins/muldf3.c (revision 84da0e1bb75f8666cf222d2f600f37bebb9ea389)
1a6b264b5SAlexey Samsonov //===-- lib/muldf3.c - Double-precision multiplication ------------*- C -*-===//
2a6b264b5SAlexey Samsonov //
357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6a6b264b5SAlexey Samsonov //
7a6b264b5SAlexey Samsonov //===----------------------------------------------------------------------===//
8a6b264b5SAlexey Samsonov //
9a6b264b5SAlexey Samsonov // This file implements double-precision soft-float multiplication
10a6b264b5SAlexey Samsonov // with the IEEE-754 default rounding (to nearest, ties to even).
11a6b264b5SAlexey Samsonov //
12a6b264b5SAlexey Samsonov //===----------------------------------------------------------------------===//
13a6b264b5SAlexey Samsonov 
14a6b264b5SAlexey Samsonov #define DOUBLE_PRECISION
156269913bSJoerg Sonnenberger #include "fp_mul_impl.inc"
16a6b264b5SAlexey Samsonov 
__muldf3(fp_t a,fp_t b)17082b89b2SPetr Hosek COMPILER_RT_ABI fp_t __muldf3(fp_t a, fp_t b) { return __mulXf3__(a, b); }
1836ac5ddfSSaleem Abdulrasool 
1936ac5ddfSSaleem Abdulrasool #if defined(__ARM_EABI__)
200d586d06SEli Friedman #if defined(COMPILER_RT_ARMHF_TARGET)
__aeabi_dmul(fp_t a,fp_t b)21082b89b2SPetr Hosek AEABI_RTABI fp_t __aeabi_dmul(fp_t a, fp_t b) { return __muldf3(a, b); }
220d586d06SEli Friedman #else
23*84da0e1bSPetr Hosek COMPILER_RT_ALIAS(__muldf3, __aeabi_dmul)
2436ac5ddfSSaleem Abdulrasool #endif
250d586d06SEli Friedman #endif
26