syoyo/aobench-fortran — pull request #2 by kshramt (2012-10-31 10:26:02+00:00)
Title: FIx some bugs, improve precisions and simplify a code.

Fixed Bugs
* nsabsamples had no effect on a quality of an image.
* fimg was declared with a save attribute.

Improve precisions
* More precise value for the PI.
* Append _REAL64 or use integer instead of single precision real number for constants.
* Simplify a code

Use intrinsic functions and built in functionalities.

A new Problem
* Performance is degraded by a commit c17576403d7e3384a8a0cc79be08fa853975b126. matmul function added by this commit slows down the performance.

This patch works (at least) on following compilers:
* GNU Fortran (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
* GNU Fortran (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)
* GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
* ifort (IFORT) 11.1 20091130
* ifort (IFORT) 13.0.0 20120731