[3.4-BIB] Add trunc/round/floor/ceil/rint builtins

Dale Johannesen dalej@apple.com
Wed Nov 6 14:04:00 GMT 2002


On Wednesday, November 6, 2002, at 01:12  PM, Jan Hubicka wrote:

>> On Wed, 6 Nov 2002, Jan Hubicka wrote:
>>
>>> Wed Nov  6 15:09:21 CET 2002  Jan Hubicka  <jh@suse.cz>
>>> 	* extend.texi (builtin functions)  Document
>>> 	floor, floorf, floorl, ceil, ceilf,
>>> 	ceill, round, roundf, roundl, trunc,
>>> 	truncf, truncl, rint, rintf, rintl.
>>
>> Some of these are C99-only (the round, trunc, rint functions I think; 
>> my
>> copy of C90 isn't to hand right now).  Note from comp.std.c and the 
>> WG14
>> reflector that C90 is available for sale again from BSI, I recommend
>> buying it.  The C99-only nature of those built-in functions needs to 
>> be
>> reflected in both the code and the docs.
>
> I see. Man page claims:
> CONFORMING TO
>        The floor() function conforms to SVID 3, POSIX, BSD 4.3, ISO
>        9899.  The other functions are from C99.
>
> So I will disable the builtins for non c++ except for floor, right?

ceil is also in C90.



More information about the Gcc-patches mailing list