blob: 4d780117cf15697d8e5b03e80642ebb5580caf21 [file] [log] [blame]
Linus Walleij9e4e7ed2023-09-18 08:11:39 +02001/* SPDX-License-Identifier: GPL-2.0 */
2
3#include "libgcc.h"
4
5#if BITS_PER_LONG == 32
6
7#include <div64.h>
8
9long long __udivdi3(long long u, word_type b)
10{
11 long long ret = u;
12
13 __div64_32(&ret, b);
14 return ret;
15}
16
17#endif /* BITS_PER_LONG == 32 */