To assist in that effort, the Fortran source library libmassv.f has been provided for use on non-IBM systems where the MASS libraries are not available. The syntax for the vector functions is visible in libmassv.f, and the user can write code using these functions to obtain code that may port to systems other than the RS6000. The user can then use the faster MASS vector libraries with that same code when running on an RS6000. See the section on Vector Code Portability for more details. The vector function subroutines may be used as any Fortran function subroutines via a CALL statement, using the same syntax as the functions in libmassv.f.
Arguments follow the same conventions as given previously.
When calling the vector functions from C, the user is reminded that only call by reference is supported. The recommended procedure for writing a portable code that is vectorized for using the fast MASS vector libraries is to write in ANSI standard language and use the vector functions defined by libmassv.f. The vector syntax to be used is visible in the libmassv.f source. It may be necessary to comment out one line of the vrsqrt subroutine, which is a directive to the IBM XLF compiler, for full portability. Use the -lmassv flag instead.