]> git.ipfire.org Git - thirdparty/kernel/linux.git/blob - lib/umoddi3.c
kmemleak: add module param to print warnings to dmesg
[thirdparty/kernel/linux.git] / lib / umoddi3.c
1 // SPDX-License-Identifier: GPL-2.0
2
3 /*
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see the file COPYING, or write
16 * to the Free Software Foundation, Inc.
17 */
18
19 #include <linux/module.h>
20 #include <linux/libgcc.h>
21
22 extern unsigned long long __udivmoddi4(unsigned long long u,
23 unsigned long long v,
24 unsigned long long *rp);
25
26 unsigned long long __umoddi3(unsigned long long u, unsigned long long v)
27 {
28 unsigned long long w;
29 (void)__udivmoddi4(u, v, &w);
30 return w;
31 }
32 EXPORT_SYMBOL(__umoddi3);