VxWorks Reference Manual : Libraries
mathSoftLib - high-level floating-point emulation library
mathSoftInit( ) - initialize software floating-point math support
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.
Software floating point is not supported for all architectures. See the architecture-specific appendices of the VxWorks Programmer's Guide.
math.h
mathSoftLib, mathHardLib, mathALib, VxWorks Programmer's Guide architecture-specific appendices
mathSoftInit( ) - initialize software floating-point math support
void mathSoftInit ()
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( ).
N/A