System.Get8087CW

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Get8087CW: Word;

C++

extern DELPHI_PACKAGE Word __fastcall Get8087CW(void);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Returns the value of the 8087 control word.

Use Get8087CW to determine the current value of the FPU (floating-point unit) control word.

On 32-bit Windows: This control word controls the precision of floating-point calculations, the rounding mode, and whether certain floating-point operations trigger exceptions. See the Intel processors' documentation for details.

On 64-bit Windows: This control word does not control floating-point operations, because the SSE register is used for floating point in 64-bit mode, instead of the FPU. However the FPU is still present in 64-bit mode, so Get8087CW returns the control word value, as in 32-bit mode.

See Also