JCL Help:Get8087ControlWord

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the 80x87 control word.


Pascal

 function Get8087ControlWord: Word;


Return Value

Returns the 80x87 control word.


Description

Get8087ControlWord returns the 80x87 control word (register). This is the FPU's register that controls how the FPU operates with regard to things such as precision, rounding and infinity control. See the table below for the meaning of the individual bits. Note that although this routine might be handy at times, the Get8087Infinity, Get8087Precision and Get8087Rounding functions are preferred as they shield you from the low level bit manipulation.

Bit(s) Description
0 (IM) Invalid operation mask
1 (DM) Denormalized operand mask
2 (ZM) Division by zero mask
3 (OM) Overflow mask
4 (UM) Underflow mask
5 (PM) Precision error mask
8,9 (PC) Precision control * 00 Single precision * 01
Reserved * 10 Double precision * 11 Extended
precision
10,11 (RC) Rounding control * 00 Round to nearest or even * 01
Round down * 10 Round up * Chop or truncate toward 0
12 (IC) Infinity control * 0 projective * 1 affine


See Also

Get8087StatusWord Set8087ControlWord


About

Unit

Jcl8087


Donator

ESB Consultancy


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page