13cab2bb3Spatrick //===-- mulosi4.c - Implement __mulosi4 -----------------------------------===// 23cab2bb3Spatrick // 33cab2bb3Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 43cab2bb3Spatrick // See https://llvm.org/LICENSE.txt for license information. 53cab2bb3Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 63cab2bb3Spatrick // 73cab2bb3Spatrick //===----------------------------------------------------------------------===// 83cab2bb3Spatrick // 93cab2bb3Spatrick // This file implements __mulosi4 for the compiler_rt library. 103cab2bb3Spatrick // 113cab2bb3Spatrick //===----------------------------------------------------------------------===// 123cab2bb3Spatrick 13*d89ec533Spatrick #define fixint_t si_int 14*d89ec533Spatrick #include "int_mulo_impl.inc" 153cab2bb3Spatrick 163cab2bb3Spatrick // Returns: a * b 173cab2bb3Spatrick 183cab2bb3Spatrick // Effects: sets *overflow to 1 if a * b overflows 193cab2bb3Spatrick __mulosi4(si_int a,si_int b,int * overflow)203cab2bb3SpatrickCOMPILER_RT_ABI si_int __mulosi4(si_int a, si_int b, int *overflow) { 21*d89ec533Spatrick return __muloXi4(a, b, overflow); 223cab2bb3Spatrick } 23