home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 14 / MA_Cover_14.iso / source / c / pegase_src / pegasecond.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-15  |  2.6 KB  |  106 lines

  1. #ifndef _PEGASECOND_HPP
  2. #define _PEGASECOND_HPP 1
  3.  
  4.                           /**************************************************/
  5.                           /*                                                */
  6.                           /*                 PégaseCond.hpp                 */
  7.                           /*                                                */
  8.                           /*    Constantes de compilation conditionnelle    */
  9.                           /*                                                */
  10.                           /**************************************************/
  11.  
  12. /*
  13. ** $Revision: 1.2 $
  14. ** $State: Exp $
  15. ** $Date: 1998/08/16 19:03:36 $
  16. **
  17. ** $Log: PegaseCond.hpp $
  18. ** Revision 1.2  1998/08/16 19:03:36  kakace
  19. ** Version Beta3+
  20. **
  21. ** Revision 1.1  1998/07/24 14:26:52  kakace
  22. ** Automatic global CheckIn
  23. **
  24. ** Revision 1.6  1998/07/24 14:14:25  kakace
  25. ** Version intermédiaire (CheckIn global)
  26. **
  27. ** Revision 1.4  1998/07/08 12:36:55  kakace
  28. ** Automatic global CheckIn
  29. **
  30. */
  31.  
  32.  
  33. // "bricolage" permettant d'ouvrir une fenêtre après un démarrage depuis le Workbench
  34.  
  35. #ifndef  _INCLUDE_FSTREAM_H
  36. #include <fstream.h>
  37. #endif
  38.  
  39.  
  40. //----------------------------------------------------------------------------------------------------
  41. // Constantes de portée générale
  42.  
  43.  
  44. #define _VERSION    1
  45. #define _REVISION   6
  46.  
  47. #if __STORM >= 39
  48. #define USE_OLD_MATHLIB
  49. #endif
  50.  
  51. #ifdef  __PPC__
  52. #define _USE_ASM_FCT_   0
  53. #else
  54. #if     _CPUMODEL_ != 68020
  55. //#define _USE_ASM_FCT_   1       // Lier avec les fonctions 100% asm.
  56. #define _USE_ASM_FCT_   0
  57. #else
  58. #define _USE_ASM_FCT_   0       // La version 68020 n'utilise pas le FPU, ce qui complique
  59. #endif                          // les choses pour le moment...
  60. #endif
  61.  
  62. // Sélection du format REAL.
  63.  
  64. #ifndef FLOAT_DOUBLE
  65. #define FLOAT_DOUBLE 1
  66. #endif
  67.  
  68. #if     FLOAT_DOUBLE == 0
  69. #define REAL   float
  70. #else
  71. #define REAL   double
  72. #endif
  73.  
  74.  
  75. // Utiliser des tables Sin/Cos en lieu et place des calculs trigonométriques
  76. // selon le modèle de processeur utilisé.
  77.  
  78. #if     _CPUMODEL_ == 68060         // La version "calcul" est plus rapide de 10% que la
  79. #define _USE_SINCOS_TABLE_ 0        // version "table" (68060/50).
  80. #define CHECK_BREAK_DELAY   10
  81. #endif
  82.  
  83. #if     _CPUMODEL_ == 68040
  84. #define _USE_SINCOS_TABLE_ 0
  85. #define CHECK_BREAK_DELAY   5
  86. #endif
  87.  
  88. #if     _CPUMODEL_ == 68030
  89. #define _USE_SINCOS_TABLE_ 1
  90. #define CHECK_BREAK_DELAY   2
  91. #endif
  92.  
  93. #if     _CPUMODEL_ == 68020
  94. #define _USE_SINCOS_TABLE_ 1
  95. #define CHECK_BREAK_DELAY   1
  96. #endif
  97.  
  98. #ifdef  __PPC__
  99. #define _USE_SINCOS_TABLE_  0
  100. #define CHECK_BREAK_DELAY   40
  101. #endif
  102.  
  103. #endif  // _PEGASECOND_HPP
  104.  
  105.  
  106.