trpfpe.3f

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3F 代码 · 共 66 行

3F
66
字号
.\" SCCSID: @(#)trpfpe.3f	8.1	9/11/90.\" michaud jan 9, l987; took range.3f out of see also.\" until a manpage is written for it..TH trpfpe 3f VAX "" Unsupported.SH Nametrpfpe, fpecnt \- trap and repair floating point faults.SH Syntax.B subroutine trpfpe (numesg, rtnval).br.B double precision rtnval.sp 1.B integer function fpecnt ().sp 1.B common /fpeflt/ fperr.br.B logical fperr.SH Description.NXR "trpfpe subroutine (FORTRAN)".NXR "fpecnt subroutine (FORTRAN)".NXR "floating point arithmetic" "trapping overflow"The.PN trpfperoutine sets up a signal handler to trap arithmetic exceptions.If the exception is due to a floating point arithmetic fault,the result of the operation is replaced with the.I rtnvalspecified.The.I rtnvalmust be a double precision value. For example, ``0d0'' or ``dflmax()''..PPThe first.I numesgoccurrences of a floating point arithmetic error will cause a messageto be written to the standard error file.Any exception that cannot be repaired will result in the defaultaction, typically an abort with core image..PPThe.PN fpecntroutinereturns the number of faults since the last call to.PN trpfpe ..PPThe logical value in the common block labeled.I fpefltwill be set to .true.  each time a fault occurs..SH RestrictionsThis routine works only for.IR faults ,not.IR traps .This is primarily due to the VAX architecture..PPIf the operation involves changing the stack pointer, it cannot be repaired.This seldom should be a problem with the f77 compiler, but such an operationmight be produced by the optimizer..PPThe POLY and EMOD opcodes are not dealt with..SH Files.ie \nM /usr/ucb/lib/libF77.a.el /usr/lib/libF77.a.SH See Alsosignal(3f) .\" range(3f)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?