This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]