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: [PATCH] Constant fold round, roundf and roundl


Roger Sayle <roger@eyesopen.com> writes:

> The following patch has been tested on i686-pc-linux-gnu with a full
> "make bootstrap", all languages except treelang, and regression tested
> with a top-level "make -k check" with no new failures.
>
> Ok for mainline?

OK.

zw

> 2004-01-22  Roger Sayle  <roger@eyesopen.com>
>
> 	* real.c (real_floor, real_ceil): Tweak to allow input and output
> 	arguments to overlap.
> 	(real_round): New function to implement round(3m) semantics.
> 	* real.h (real_round): Prototype here.
> 	* builtins.c (fold_builtin_round): New function to constant fold
> 	round, roundf and roundl.
> 	(fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
>
> 	* gcc.dg/builtins-29.c: New test case.


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