GetMode

Gets the VML mode.

Syntax

Fortran:

mod = vmlgetmode()

C:

mod = vmlGetMode( void );

Include Files

The FORTRAN 77 interfaces are specified in the mkl_vml.f77 include file, the Fortran 90 interfaces are specified in the mkl_vml.f90 include file, and the C interfaces are specified in the mkl_vml_functions.h include file.

Output Parameters

Name

Type

Description

mod

FORTRAN: INTEGER

C: int

Specifies the packed mode parameter.

Description

The function vmlGetMode() returns the VML mode parameter that controls accuracy, handling of denormalized numbers, and error handling options. The mod variable value is a combination of the values listed in the Table "Values of the mode Parameter". You can obtain these values using the respective mask from the Table "Values of Mask for the mode Parameter".

Values of Mask for the mode Parameter
Value of mask Description
VML_ACCURACY_MASK Specifies mask for accuracy mode selection.
VML_FTZDAZ_MASK Specifies mask for FTZDAZ mode selection.
VML_ERRMODE_MASK Specifies mask for error mode selection.

See example below:

Examples

Fortran:

mod = vmlgetmode()
accm = IAND(mod, VML_ACCURACY_MASK)
denm = IAND(mod, VML_FTZDAZ_MASK)
errm = IAND(mod, VML_ERRMODE_MASK)
C:

accm = vmlGetMode(void )& VML_ACCURACY_MASK;
denm = vmlGetMode(void )& VML_FTZDAZ_MASK;
errm = vmlGetMode(void )& VML_ERRMODE_MASK;

Submit feedback on this help topic

Copyright © 1994 - 2011, Intel Corporation. All rights reserved.