added whiteout
[unix-history] / usr / src / lib / libc / quad / umoddi3.c
CommitLineData
8ad89a11 1/*-
f7e479c4
KB
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
8ad89a11 4 *
80316a78
KB
5 * This software was developed by the Computer Systems Engineering group
6 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7 * contributed to Berkeley.
8 *
8ad89a11
KB
9 * %sccs.include.redist.c%
10 */
11
12#if defined(LIBC_SCCS) && !defined(lint)
f7e479c4 13static char sccsid[] = "@(#)umoddi3.c 8.1 (Berkeley) %G%";
8ad89a11
KB
14#endif /* LIBC_SCCS and not lint */
15
80316a78 16#include "quad.h"
1d7b9c94 17
80316a78
KB
18/*
19 * Return remainder after dividing two unsigned quads.
20 */
0f92e33b
KB
21u_quad_t
22__umoddi3(a, b)
23 u_quad_t a, b;
8ad89a11 24{
0f92e33b 25 u_quad_t r;
8ad89a11 26
1bae7478 27 (void)__qdivrem(a, b, &r);
80316a78 28 return (r);
8ad89a11 29}