home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / libraries / mathffp.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  1KB  |  54 lines

  1. #ifndef    LIBRARIES_MATHFFP_H
  2. #define    LIBRARIES_MATHFFP_H 1
  3. /*
  4. **    $VER: mathffp.h 36.2 (1.5.90)
  5. **    Includes Release 40.15
  6. **
  7. **    general floating point declarations
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef PI
  14. #define PI      ((float) 3.141592653589793)
  15. #endif
  16. #define TWO_PI      (((float) 2) * PI)
  17. #define PI2      (PI / ((float) 2))
  18. #define PI4      (PI / ((float) 4))
  19. #ifndef E
  20. #define E      ((float) 2.718281828459045)
  21. #endif
  22. #define LOG10      ((float) 2.302585092994046)
  23.  
  24. #define FPTEN      ((float) 10.0)
  25. #define FPONE      ((float) 1.0)
  26. #define FPHALF      ((float) 0.5)
  27. #define FPZERO      ((float) 0.0)
  28.  
  29. #define trunc(x)  ((int) (x))
  30. #define round(x)  ((int) ((x) + 0.5))
  31. #define itof(i)   ((float) (i))
  32.  
  33. #define    fabs    SPAbs
  34. #define floor    SPFloor
  35. #define    ceil    SPCeil
  36.  
  37. #define    tan    SPTan
  38. #define    atan    SPAtan
  39. #define cos    SPCos
  40. #define acos    SPAcos
  41. #define sin    SPSin
  42. #define asin    SPAsin
  43. #define exp    SPExp
  44. #define pow(a,b)    SPPow((b),(a))
  45. #define log    SPLog
  46. #define log10    SPLog10
  47. #define sqrt    SPSqrt
  48.  
  49. #define    sinh    SPSinh
  50. #define cosh    SPCosh
  51. #define tanh    SPTanh
  52.  
  53. #endif    /* LIBRARIES_MATHFFP_H */
  54.