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

  1. /***
  2. * fp10.c - Set default FP precision to 64 bits (10-byte 'long 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 64 bits, used to override
  15.  * standard 53-bit precision version in fpinit.c.
  16.  */
  17.  
  18. void _setdefaultprecision()
  19. {
  20.         _controlfp(_PC_64, _MCW_PC);
  21. }
  22.  
  23.