[fortran-dev, patch] Split formatted read and write transfer function
Steve Kargl
sgk@troutmask.apl.washington.edu
Sat Mar 28 21:02:00 GMT 2009
On Sat, Mar 28, 2009 at 12:42:06PM -0700, Jerry DeLisle wrote:
> Hi folks,
>
> This patch splits formatted_transfer_scalar into read and write versions.
> This allows the numerous tests for read_mode to be factored out and placed
> in formatted transfer.
>
> The result is more compact code, easier to maintain and somewhat improved
> performance.
>
> OK for fortran-dev?
>
> Jerry
>
>
> * transfer.c (formatted_transfer_scalar): Remove this function by
> factoring it into two new functions, one for read and one for right,
> eliminating all the conditionals for read or write mode.
> (formatted transfer_scalar_read): New function.
> (formatted transfer_scalar_write): New function.
> (formatted_transfer): Use new functions.
>
Patch looks good. You may want to wait for Janne's opinion.
--
Steve
More information about the Gcc-patches
mailing list