Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ whichfpa(8) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getfloatstate(2)

WHICHFPA(8)  —  

NAME

whichfpa − prints floating point unit in use to standard output

SYNOPSIS

whichfpa [ -s | -v ]

DESCRIPTION

Whichfpa determines what floating point hardware exists on the machine, and what floating point hardware is currently in use.  IBM/4.3 supports several different floating point units: FLOAT_AFPA, FLOAT_MC881, FLOAT_FPA, and FLOAT_EMUL.  The include file <machine/float.h> contains the definition of these constants.  Currently, the definitions are as follows:

#define FLOAT_MC8810x01
#define FLOAT_FPA   0x02
#define FLOAT_AFPA 0x04
#define FLOAT_EMUL0x08

By default, the system chooses the fastest available floating point unit.  Users can select what hardware to use by setting environment variable FPA (e.g.  setenv FPA [afpa | mc881 | fpa | emul]). 

-s Silent.  Returns an integer FLOAT_MC881, FLOAT_FPA, FLOAT_AFPA, FLOAT_EMUL, indicating what floating point hardware the current (invoking) process is using.  Nothing is printed. 

-v Verbose.  Prints, to standard output, all floating point hardware installed and which is being used by the current process. 

SEE ALSO

getfloatstate(2),
“Floating Point Arithmetic" in Supplementary Documents

BUGS

Whichfpa prints either afpa or E_afpa (Enhanced AFPA) , depending on what hardware is installed.  However, it returns only one value: FLOAT_AFPA. 

PRPQs 5799-WZQ/5799-PFF: IBM/4.3  —  Dec 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026