1177765Sdas/*-
2177765Sdas * Copyright (c) 2008 David Schultz <das@FreeBSD.ORG>
3177765Sdas * All rights reserved.
4177765Sdas *
5177765Sdas * Redistribution and use in source and binary forms, with or without
6177765Sdas * modification, are permitted provided that the following conditions
7177765Sdas * are met:
8177765Sdas * 1. Redistributions of source code must retain the above copyright
9177765Sdas *    notice, this list of conditions and the following disclaimer.
10177765Sdas * 2. Redistributions in binary form must reproduce the above copyright
11177765Sdas *    notice, this list of conditions and the following disclaimer in the
12177765Sdas *    documentation and/or other materials provided with the distribution.
13177765Sdas *
14177765Sdas * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15177765Sdas * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16177765Sdas * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17177765Sdas * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18177765Sdas * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19177765Sdas * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20177765Sdas * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21177765Sdas * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22177765Sdas * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23177765Sdas * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24177765Sdas * SUCH DAMAGE.
25177765Sdas */
26177765Sdas
27177765Sdas#include <sys/cdefs.h>
28177765Sdas__FBSDID("$FreeBSD$");
29177765Sdas
30177765Sdas#include <math.h>
31177765Sdas
32177765Sdaslong double
33177765Sdasremainderl(long double x, long double y)
34177765Sdas{
35177765Sdas	int quo;
36177765Sdas
37177765Sdas	return (remquol(x, y, &quo));
38177765Sdas}
39