Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - all floating-point arithmetic is done with calls to a floating-point http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
All floating-point arithmetic is done with calls to a floating-point
emulation library.  If a numeric data processor is present in the system, it
will be used by the library; otherwise floating-point operations are
simulated in software.  This option should be used for any of the following
reasons:
 1. Speed of floating-point emulation is favoured over code size.

 2. An application containing floating-point operations is to be stored in
    ROM and an 80x87 will not be present in the system.

The macro __SW_FPC will be predefined if "fpc" is selected.

+--------------------------------------------------------------------------+
|   Note:  When any module in an application is compiled with the "fpc"    |
| option, then all modules must be compiled with the "fpc" option.         |
  Different math libraries are provided for applications which have been   |
| compiled with a particular floating-point option.  See the section       |
| entitled Watcom C/C++ Math Libraries.                                    |
|                                                                          |
+--------------------------------------------------------------------------+
See the section entitled The NO87 Environment Variable for information on
testing the floating-point simulation code on personal computers equipped
with a coprocessor.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson