VxWorks Reference Manual : Libraries

mathSoftLib

NAME

mathSoftLib - high-level floating-point emulation library

ROUTINES

mathSoftInit( ) - initialize software floating-point math support

DESCRIPTION

This library provides software emulation of various high-level floating-point operations. This emulation is generally for use in systems that lack a floating-point coprocessor.

WARNING

Software floating point is not supported for all architectures. See the architecture-specific appendices of the VxWorks Programmer's Guide.

INCLUDE FILES

math.h

SEE ALSO

mathSoftLib, mathHardLib, mathALib, VxWorks Programmer's Guide architecture-specific appendices


Libraries : Routines

mathSoftInit( )

NAME

mathSoftInit( ) - initialize software floating-point math support

SYNOPSIS


void mathSoftInit ()

DESCRIPTION

This routine places the addresses of the emulated high-level math functions (trigonometric functions, etc.) in a set of global variables. This allows the standard math functions (e.g., sin( ), pow( )) to have a single entry point but be dispatched to the hardware or software support routines, as specified.

This routine is called from usrConfig.c if INCLUDE_SW_FP is defined. This definition causes the linker to include the floating-point emulation library.

If the system is to use some combination of emulated as well as hardware coprocessor floating points, then this routine should be called before calling mathHardInit( ).

RETURNS

N/A

SEE ALSO

mathSoftLib, mathHardInit( )