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, fortran] Use BUILT_IN_IROUND


Janne Blomqvist wrote:
since some time GCC has BUILT_IN_IROUND{F,,L}, similar to lround() and
llround() but the result is returned as an integer.

Regtested on x86_64-unknown-linux-gnu, Ok for trunk?

OK. Thanks for the patch! Nit: Could you check mathbuiltins.def - at least in the diff, "iround" seems to be misaligned (one " " missing).


Tobias

2012-03-15 Janne Blomqvist<jb@gcc.gnu.org>

         * f95-lang.c (gfc_init_builtin_functions): Initialize
         BUILT_IN_IROUND.
         * mathbuiltins.def: Add IROUND.
         * trans-intrinsic.c (build_round_expr): Use BUILT_IN_IROUND if
         type size matches.
         (gfc_build_intrinsic_lib_fndecls): Build iround functions.


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