From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1346 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 8/10] finite Date: Sun, 22 Jul 2012 18:36:53 -0700 Message-ID: <20120722183653.30b6bd34@newbook> References: <20120722181332.191d4fa5@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/YyL07.FVn_f4+YZkLzQRo_y" X-Trace: dough.gmane.org 1343007434 10857 80.91.229.3 (23 Jul 2012 01:37:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 01:37:14 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1347-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 23 03:37:10 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1St7a9-0005xT-Px for gllmg-musl@plane.gmane.org; Mon, 23 Jul 2012 03:37:09 +0200 Original-Received: (qmail 19822 invoked by uid 550); 23 Jul 2012 01:37:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 19812 invoked from network); 23 Jul 2012 01:37:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=S07c8wXBo+aigN0fntDvkvC/W2sQ7HnsTn9/4am4sgRhZ2TA1N1Fxx9RvLDWetYXjwpGIUxcKozwL6hsE+2z5PLYjeHgDrdGuel+RUbBBW0ycKyXkOJ9W6GPW2yL0ugoLyIQx0w1XkLyVp0hEtEKtpaJdyB5UluC0IFAcvlj5mE=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type; In-Reply-To: <20120722181332.191d4fa5@newbook> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:1346 Archived-At: --MP_/YyL07.FVn_f4+YZkLzQRo_y Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, 22 Jul 2012 18:13:32 -0700 Isaac Dunham wrote: > This patch series is basically a reworked version of orc's previous > patch. > From what orc said, the first patch should provide enough to build > Xorg; I haven't tested this yet. > A few more patches are syscall wrappers (splice) or trivial > functions (finite). > Finally, there are several aliases. > This provides finite(); it has been split out into finite.c, to avoid namespace issues. Isaac Dunham --MP_/YyL07.FVn_f4+YZkLzQRo_y Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=8-finite.diff diff --git a/include/math.h b/include/math.h index d732648..7f98f8a 100644 --- a/include/math.h +++ b/include/math.h @@ -350,6 +350,10 @@ long double truncl(long double); #define MAXFLOAT 3.40282347e+38F #endif +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +int finite(double); +#endif + #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) extern int signgam; diff --git a/src/math/finite.c b/src/math/finite.c new file mode 100644 index 0000000..bf4f70f --- /dev/null +++ b/src/math/finite.c @@ -0,0 +1,11 @@ +#include "libm.h" + +#define _BSD_SOURCE +#include + +int __finite(double x) +{ + return isfinite(x); +} + +weak_alias(__finite, finite); --MP_/YyL07.FVn_f4+YZkLzQRo_y--