blob: a1d9a161c235d79271b8cc7e16b2542051110e4b [file] [log] [blame]
Stefan Reinauerdb03c222015-07-08 23:59:15 +02001/*
2 * This file is part of the coreboot project.
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; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
Stefan Reinauerdb03c222015-07-08 23:59:15 +020012 */
13
14#include "libgcc.h"
15uint64_t __umoddi3(uint64_t num, uint64_t den)
16{
17 uint64_t v;
18 (void) __udivmoddi4(num, den, &v);
19 return v;
20}