home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / fp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-18  |  1.0 KB  |  56 lines

  1.  
  2. // $Header$
  3. // Copyright (C) 1995-2001 by Digital Mars
  4. // All Rights Reserved
  5. // www.digitalmars.com
  6. // Written by Walter Bright
  7.  
  8. // Most of what used to be here was moved into math.h
  9. // per the C99 standard.
  10.  
  11. #if __DMC__ || __RCC__
  12. #pragma once
  13. #endif
  14.  
  15. #ifndef __FLTPNT_H
  16. #define __FLTPNT_H 1
  17.  
  18. #ifndef __MATH_H
  19. #include <math.h>
  20. #endif
  21.  
  22. #if __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. double    __CLIB scalb(double, int);
  27. float    __CLIB scalbf(float, int);
  28. long double __CLIB scalbl(long double, int);
  29.  
  30. double __cdecl nans(const char *);
  31. float __cdecl nansf(const char *);
  32. long double __cdecl nansl(const char *);
  33.  
  34. long int __cdecl rndtol(long double);
  35. long int __cdecl rndtonl(long double);
  36.  
  37. #define scalbl        scalb
  38. #define nansl        nans
  39.  
  40. /* Compiler Intrinsics  */
  41. #if __INLINE_8087
  42. short __cdecl _inline_rndtos(double);
  43. long __cdecl _inline_rndtol(long double);
  44. #if __INTSIZE == 4
  45. long long __cdecl _inline_rndtoll(long double);
  46. #endif
  47. #define rndtol(d) _inline_rndtol(d)
  48. #endif
  49.  
  50. #if __cplusplus
  51. }
  52. #endif
  53.  
  54. #endif
  55.  
  56.