Describes the XBLAS changes that add a Fortran interface.
We need a portable-enough method for Fortran LAPACK routines to call the C XBLAS routines. By adding a few ugly hacks to the XBLAS M4 generators, we can allow for the common Fortran name-mangling possibilities.
The new src/f2c-bridge.h defines FC_FUNC and FC_FUNC_ macros similar to autoconf's. Rather than rely on build-time tests, we ask the users to pass the correct cpp options from the following in their make.inc:
Add one underscore to each name.
If the name has an underscore in it already, add two; otherwise add one
The name is converted to upper-case; default is lower-case.
REAL values are returned in C doubles as in f2c. (Currently unused, but will be needed to call SLAMCH from C.)
These are just to show individual, localized changes and their explanations.
Adds the f2c-bridge.h header, the changes to the common M4 file, and an interface for BLAS_fpinfo_x.
Includes CFLAGS in make.* according to my best guesses, and builds the new *-f2c.c files.
A little bit of documentation pointing at src/f2c-bridge.h for the options that need selected. More documentation has been added to src/f2c-bridge.h since the first patch above.
Fixes a mistake in the first patch; the F77 bindings don't allow for row-major ordering.
A snapshot of my current tree is in xblas-2006.09.09.tar.bz2. This isn't an "official" tree yet; ask Yozo for a real one.
I'm not sure how UTK wants to handle including XBLAS changes, and I'm also not 100% sure which version currently is in the LAPACK repo.
I think this snapshot has the following additional changes:
Date: 2006/09/09 04:45:29 PM