This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.4-BIB] Add trunc/round/floor/ceil/rint builtins II
- From: Dale Johannesen <dalej at apple dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Dale Johannesen <dalej at apple dot com>, Jan Hubicka <jh at suse dot cz>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, "Joseph S. Myers" <jsm28 at cam dot ac dot uk>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 6 Nov 2002 15:56:58 -0800
- Subject: Re: [3.4-BIB] Add trunc/round/floor/ceil/rint builtins II
On Wednesday, November 6, 2002, at 03:47 PM, Richard Henderson wrote:
On Wed, Nov 06, 2002 at 03:31:48PM -0800, Dale Johannesen wrote:
This is what C90 says:
floor[lf] ceil[lf] are reserved:
"The names of [floor and ceil], suffixed with f or l, are reserved
respectively for corresponding functions with float and long double
arguments and return values."
But implementing such functions is not required. I'd read this to
say you can implement them if you want to.
What it means is that we can't make __builtin_floorf call
floorf if the backend doesn't implement the pattern though.
Right, the compiler can't assume a library function named floorf exists
(in C90 mode). Generating code for it inline is OK though, I think.
Now if the compiler were to acquire ownership of the library...