X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Sybari-Space: 00000000 00000000 00000000 00000000 From: Martin Stromberg Message-Id: <200309301259.OAA10016@lws256.lu.erisoft.se> Subject: Re: K. B. Williams's comparison macros [PATCH] To: djgpp-workers AT delorie DOT com Date: Tue, 30 Sep 2003 14:59:37 +0200 (MET DST) In-Reply-To: from "Richard Dawe" at Sep 28, 2003 10:42:21 AM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > I wonder if this works with gcc < 3? Do they have builtin versions > of these functions? I think we should support gcc < 3. So I think > we need our own implementation of these macros. > > Thanks, bye, Rich =] > > Index: include/math.h > =================================================================== > RCS file: /cvs/djgpp/djgpp/include/math.h,v > retrieving revision 1.9 > diff -p -u -3 -r1.9 math.h > --- include/math.h 3 Sep 2003 17:05:22 -0000 1.9 > +++ include/math.h 28 Sep 2003 09:28:11 -0000 > @@ -79,6 +79,13 @@ int __fpclassifyf(float) __attribute__(( > int __fpclassifyd(double) __attribute__((const)); > int __fpclassifyld(long double) __attribute__((const)); > > +#define isgreater(x,y) __builtin_isgreater(x,y) > +#define isgreaterequal(x,y) __builtin_isgreaterequal(x,y) ... I'm not sure but this doesn't look to me like an implementation but a definte not implemented here. Right, MartinS