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
> Jan Hubicka <jh@suse.cz> writes:
>
> | > 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?
>
> If they are seen as __builtin_xxx() in source code then I don't think
> there is any need to disable them for C++.
I meant c99.
I believe the behaviour is that they will be __bulitin_xxx but not xxx.
Honza
>
> -- Gaby