[Patch, fortran] PR24518 and PR24520 - Improvements to MOD and DOT_PRODUCT

Paul Thomas paulthomas2@wanadoo.fr
Thu Nov 10 19:45:00 GMT 2005


Tobi,

>I'm wondering, why are you promoting the arguments in to double precision in
>your mod implementation?  This will introduce double rounding problems (which
>I'm not too worried about, as Fortran is only guaranteeing an approximation to
>the mathematical value) and cut off precision in the REAL*10 or REAL*16 case.
>  
>
To increase the range for which an answer is obtained.

>I'm also wondering, why you are unconditionally using the library version of
>DOT_PROD for kinds > 8.
>  
>
Uh!  I put that in as a backstop because I was not in a position to test 
the higher precision.  I meant to ask that somebody do it for me by 
raising the condition.  I totally forgot about it.

Can somebody do the real*16 test for me, please?  I'll check out real*10.

Thanks

Paul



More information about the Fortran mailing list