HP MLIB User's Guide Vol. 2 7th Ed.
804 HP MLIB User’s Guide
vmlSetMode, vmlGetMode Set and get the mode for VMATH functions
...
vmlSetMode (savemode) ;
The value of the mode returned by vmlSetMode and vmlGetMode is a bitwise
OR of the macros for the accuracy, error, and FPU modes in effect at the time of
the call. The particular component modes can be determined with the mode
masks:
For example: the following tests whether the higher accuracy mode is in effect:
if ((vmlGetMode() & VML_ACCURACY_MASK) == VML_HA) {
// Higher Accuracy
}
Usage VMATH:
#include <vmath.h>
unsigned int vmlSetMode (unsigned int mode) ;
unsigned int vmlGetMode (void) ;
VMATH8:
#include <vmath8.h>
unsigned int vmlSetMode (unsigned int mode) ;
unsigned int vmlGetMode (void) ;
Input mode Specification of changes to VMATH mode.
Output oldmode Pre-call value of VMATH mode.
VML_ACCURACY_MASK mask for accuracy mode
VML_ERRMODE_MASK mask for error mode
VML_FPUMODE_MASK mask for FPU mode