|
Function | Define the action taken in the case of INTEGER OVERFLOW and INTEGER DOMAIN errors (32-bit only). |
|
Syntax C/C++ | #include <VecLib.h>
typedef enum {
ierrIgnore = 0, ierrNote, ierrAbort
} V_ihand;
void V_setIntErrorHandling( V_ihand ihand ); |
Pascal/Delphi | uses VecLib;
type V_ihand = 0..2;
procedure V_setIntErrorHandling( ihand:V_iHand ); |
|
Description | This function allows to set the handling mode for OVERFLOW and DOMAIN errors occurring within integer functions of the 32-bit libraries of OptiVec. The 64-bit libraries are not affected by this function. It has to be called with one of the following pre-defined constants as argument:
ierrIgnore = 0;
ierrNote = 1;
ierrAbort = 2;
The default is that these errors are ignored, i.e., they are treated by discarding overflowing bits (see chapter 5.2 for details on integer error handling). If you wish to change this behaviour, call, e.g.,
V_setIntErrorHandling( ierrNote );
and add the letter "o" to the prefixes of those integer functions for which you wish to trap errors: VIo_, VUSo_, etc. |
|
|
|
|