2011-06-17 20:17:05 +00:00
|
|
|
//===-- mulodi4.c - Implement __mulodi4 -----------------------------------===//
|
2019-04-28 22:47:49 +00:00
|
|
|
//
|
2019-01-19 10:56:40 +00:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2019-04-28 22:47:49 +00:00
|
|
|
//
|
2011-06-17 20:17:05 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2019-04-28 22:47:49 +00:00
|
|
|
//
|
2011-06-17 20:17:05 +00:00
|
|
|
// This file implements __mulodi4 for the compiler_rt library.
|
2019-04-28 22:47:49 +00:00
|
|
|
//
|
2011-06-17 20:17:05 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2020-08-27 13:19:08 +03:00
|
|
|
#define fixint_t di_int
|
2023-03-09 08:37:47 +01:00
|
|
|
#define fixuint_t du_int
|
2020-08-27 13:19:08 +03:00
|
|
|
#include "int_mulo_impl.inc"
|
2011-06-17 20:17:05 +00:00
|
|
|
|
|
|
|
// Returns: a * b
|
|
|
|
|
|
|
|
// Effects: sets *overflow to 1 if a * b overflows
|
|
|
|
|
|
|
|
COMPILER_RT_ABI di_int __mulodi4(di_int a, di_int b, int *overflow) {
|
2020-08-27 13:19:08 +03:00
|
|
|
return __muloXi4(a, b, overflow);
|
2011-06-17 20:17:05 +00:00
|
|
|
}
|