153447Sbostic /*- 253447Sbostic * Copyright (c) 1992 The Regents of the University of California. 353447Sbostic * All rights reserved. 453447Sbostic * 553794Sbostic * This software was developed by the Computer Systems Engineering group 653794Sbostic * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 753794Sbostic * contributed to Berkeley. 853794Sbostic * 953447Sbostic * %sccs.include.redist.c% 1053447Sbostic */ 1153447Sbostic 1253447Sbostic #if defined(LIBC_SCCS) && !defined(lint) 13*54083Sbostic static char sccsid[] = "@(#)umoddi3.c 5.4 (Berkeley) 06/19/92"; 1453447Sbostic #endif /* LIBC_SCCS and not lint */ 1553447Sbostic 1653794Sbostic #include "quad.h" 1753459Sbostic 1853794Sbostic /* 1953794Sbostic * Return remainder after dividing two unsigned quads. 2053794Sbostic */ 2153794Sbostic u_quad 2253794Sbostic __umoddi3(u_quad a, u_quad b) 2353447Sbostic { 2453794Sbostic u_quad r; 2553447Sbostic 26*54083Sbostic (void)__qdivrem(a, b, &r); 2753794Sbostic return (r); 2853447Sbostic } 29