Download Fortran Library Reference

Transcript
Change the declarations for address and function hand to INTEGER*8 to enable
Example 5 in a 64-bit, SPARC V9 environment (-xarch=v9)
See the Numerical Computation Guide. See also: floatingpoint(3), signal(3),
sigfpe(3), f77_floatingpoint(3F), ieee_flags(3M), and ieee_handler(3M).
f77_floatingpoint.h: Fortran IEEE
Definitions
The header file f77_floatingpoint.h defines constants and types used to
implement standard floating-point according to ANSI/IEEE Std 754-1985.
Include the file in a FORTRAN 77 source program as follows:
#include "f77_floatingpoint.h"
Use of this include file requires preprocessing prior to Fortran compilation. The
source file referencing this include file will automatically be preprocessed if the
name has a .F, .F90 or .F95 extension.
Fortran 95 programs should include the file floatingpoint.h instead.
IEEE Rounding Mode:
fp_direction_type
The type of the IEEE rounding direction mode. The
order of enumeration varies according to hardware.
SIGFPE Handling:
sigfpe_code_type
The type of a SIGFPE code.
sigfpe_handler_type
The type of a user-definable SIGFPE exception
handler called to handle a particular SIGFPE code.
SIGFPE_DEFAULT
A macro indicating default SIGFPE exception
handling: IEEE exceptions to continue with a default
result and to abort for other SIGFPE codes.
SIGFPE_IGNORE
A macro indicating an alternate SIGFPE exception
handling, namely to ignore and continue execution.
SIGFPE_ABORT
A macro indicating an alternate SIGFPE exception
handling, namely to abort with a core dump.
Chapter 1
Fortran Library Routines
59