home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Libraries / MacOS PPC / x80<->double conversion / x80.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-12  |  763 b   |  34 lines  |  [TEXT/MPCC]

  1. /*
  2.  *    File:        x80.h
  3.  *                ©1993-1995 metrowerks Inc. All rights reserved
  4.  *
  5.  *    Content:    workaround for lack of 'long double' support in CodeWarrior for PowerPC
  6.  *
  7.  *    Use these routines instead of x80told() and ldtox80() from <fp.h>.
  8.  *
  9.  *    CodeWarrior does not support the 128-bit 'long double' format expected
  10.  *    by the various MathLib routines. All of these routines have 'double'
  11.  *    counterparts except for x80told() and ldtox80(). We provide 'double'
  12.  *    versions of those routines here.
  13.  */
  14.  
  15. #ifndef __X80__
  16. #define __X80__
  17.  
  18. #ifndef __TYPES__
  19. #include <Types.h>
  20. #endif
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. extern void x80tod ( const extended80 *x80, double *x );
  27. extern void dtox80 ( const double *x, extended80 *x80 );
  28.  
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32.  
  33. #endif
  34.