udivdi3.c revision 331722
119370Spst/*-
298944Sobrien * Copyright (c) 1992, 1993
398944Sobrien *	The Regents of the University of California.  All rights reserved.
419370Spst *
519370Spst * This software was developed by the Computer Systems Engineering group
698944Sobrien * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
719370Spst * contributed to Berkeley.
898944Sobrien *
998944Sobrien * Redistribution and use in source and binary forms, with or without
1098944Sobrien * modification, are permitted provided that the following conditions
1198944Sobrien * are met:
1219370Spst * 1. Redistributions of source code must retain the above copyright
1398944Sobrien *    notice, this list of conditions and the following disclaimer.
1498944Sobrien * 2. Redistributions in binary form must reproduce the above copyright
1598944Sobrien *    notice, this list of conditions and the following disclaimer in the
1698944Sobrien *    documentation and/or other materials provided with the distribution.
1719370Spst * 4. Neither the name of the University nor the names of its contributors
1898944Sobrien *    may be used to endorse or promote products derived from this software
1998944Sobrien *    without specific prior written permission.
2098944Sobrien *
2198944Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2219370Spst * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2319370Spst * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2419370Spst * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2519370Spst * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2619370Spst * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2719370Spst * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2819370Spst * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2919370Spst * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30130803Smarcel * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3119370Spst * SUCH DAMAGE.
3298944Sobrien */
3319370Spst
3498944Sobrien#if defined(LIBC_SCCS) && !defined(lint)
3519370Spststatic char sccsid[] = "@(#)udivdi3.c	8.1 (Berkeley) 6/4/93";
3698944Sobrien#endif /* LIBC_SCCS and not lint */
3719370Spst#include <sys/cdefs.h>
3898944Sobrien__FBSDID("$FreeBSD: stable/11/lib/libc/quad/udivdi3.c 331722 2018-03-29 02:50:57Z eadler $");
3919370Spst
4098944Sobrien#include "quad.h"
4119370Spst
4298944Sobrien/*
4398944Sobrien * Divide two unsigned quads.
4419370Spst */
4519370Spstu_quad_t
4619370Spst__udivdi3(a, b)
4719370Spst	u_quad_t a, b;
4819370Spst{
4919370Spst
5019370Spst	return (__qdivrem(a, b, (u_quad_t *)0));
5119370Spst}
5298944Sobrien