X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: Kbwms AT aol DOT com Message-ID: <1e4.10a8dd0f.2caaed7f@aol.com> Date: Tue, 30 Sep 2003 10:30:23 EDT Subject: Re: K. B. Williams's comparison macros [PATCH] To: djgpp-workers AT delorie DOT com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="part1_1e4.10a8dd0f.2caaed7f_boundary" X-Mailer: 8.0 for Windows sub 6015 Reply-To: djgpp-workers AT delorie DOT com --part1_1e4.10a8dd0f.2caaed7f_boundary Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In a message dated 9/30/2003 9:00:40 AM Eastern Standard Time, Martin DOT Stromberg AT epl DOT ericsson DOT se writes: > >+#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 > definite not implemented here. > These macros satisfy requirements of C99 and are described in the info file for GCC as follows: GCC provides built-in versions of the ISO C99 floating point comparison macros that avoid raising exceptions for unordered operands. They have the same names as the standard macros ( `isgreater', `isgreaterequal', `isless', `islessequal', `islessgreater', and `isunordered') , with `__builtin_' prefixed. We intend for a library implementor to be able to simply `#define' each standard macro to its built-in equivalent. KB Williams --part1_1e4.10a8dd0f.2caaed7f_boundary Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable In a message dated 9/30/2003 9:00:40 AM Eastern Standard= Time, Martin DOT Stromberg AT epl DOT ericsson DOT se writes:

>+#define   isgreater(x,y)   &n= bsp; __builtin_isgreater(x,y)
>+#define   isgreaterequal(x,y)   __builtin_isgreater= equal(x,y)
...

I'm not sure but this doesn't look to me like an implementation but a
definite not implemented here.


These macros satisfy requirements of C99 and are described in the info file=20= for GCC as follows:

   GCC provides built-in versions of the ISO C99 floating point comparison macros that avoid raising exceptions for unordered operands.
They have the same names as the standard macros ( `isgreater',
`isgreaterequal', `isless', `islessequal', `islessgreater', and
`isunordered') , with `__builtin_' prefixed.  We intend for a library implementor to be able to simply `#define' each standard macro to its
built-in equivalent.


KB Williams
--part1_1e4.10a8dd0f.2caaed7f_boundary--