153447Sbostic /*- 253447Sbostic * Copyright (c) 1992 The Regents of the University of California. 353447Sbostic * All rights reserved. 453447Sbostic * 5*53794Sbostic * This software was developed by the Computer Systems Engineering group 6*53794Sbostic * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7*53794Sbostic * contributed to Berkeley. 8*53794Sbostic * 953447Sbostic * %sccs.include.redist.c% 1053447Sbostic */ 1153447Sbostic 1253447Sbostic #if defined(LIBC_SCCS) && !defined(lint) 13*53794Sbostic static char sccsid[] = "@(#)umoddi3.c 5.3 (Berkeley) 06/02/92"; 1453447Sbostic #endif /* LIBC_SCCS and not lint */ 1553447Sbostic 16*53794Sbostic #include "quad.h" 1753459Sbostic 18*53794Sbostic /* 19*53794Sbostic * Return remainder after dividing two unsigned quads. 20*53794Sbostic */ 21*53794Sbostic u_quad 22*53794Sbostic __umoddi3(u_quad a, u_quad b) 2353447Sbostic { 24*53794Sbostic u_quad r; 2553447Sbostic 26*53794Sbostic (void) __qdivmod(a, b, &r); 27*53794Sbostic return (r); 2853447Sbostic } 29