home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / platform / fp8.c < prev    next >
C/C++ Source or Header  |  1998-06-17  |  447b  |  22 lines

  1. /***
  2. * fp8.c - Set default FP precision to 53 bits (8-byte double)
  3. *
  4. *       Copyright (c) 1993-1997, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *
  8. *******************************************************************************/
  9. #include <float.h>
  10.  
  11. void  _setdefaultprecision(void);
  12.  
  13. /*
  14.  * Routine to set default FP precision to 53 bits.
  15.  */
  16.  
  17. void _setdefaultprecision()
  18. {
  19.         _controlfp(_PC_53, _MCW_PC);
  20. }
  21.  
  22.