StrictMath.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_lang_StrictMath__
  3. #define __java_lang_StrictMath__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. class java::lang::StrictMath : public ::java::lang::Object
  8. {
  9. StrictMath();
  10. public:
  11. static jint abs(jint);
  12. static jlong abs(jlong);
  13. static jfloat abs(jfloat);
  14. static jdouble abs(jdouble);
  15. static jint min(jint, jint);
  16. static jlong min(jlong, jlong);
  17. static jfloat min(jfloat, jfloat);
  18. static jdouble min(jdouble, jdouble);
  19. static jint max(jint, jint);
  20. static jlong max(jlong, jlong);
  21. static jfloat max(jfloat, jfloat);
  22. static jdouble max(jdouble, jdouble);
  23. static jdouble sin(jdouble);
  24. static jdouble cos(jdouble);
  25. static jdouble tan(jdouble);
  26. static jdouble asin(jdouble);
  27. static jdouble acos(jdouble);
  28. static jdouble atan(jdouble);
  29. static jdouble atan2(jdouble, jdouble);
  30. static jdouble sinh(jdouble);
  31. static jdouble cosh(jdouble);
  32. static jdouble tanh(jdouble);
  33. private:
  34. static jlong getLowDWord(jlong);
  35. static jlong getHighDWord(jlong);
  36. static jdouble buildDouble(jlong, jlong);
  37. public:
  38. static jdouble cbrt(jdouble);
  39. static jdouble exp(jdouble);
  40. static jdouble expm1(jdouble);
  41. static jdouble log(jdouble);
  42. static jdouble sqrt(jdouble);
  43. static jdouble pow(jdouble, jdouble);
  44. static jdouble IEEEremainder(jdouble, jdouble);
  45. static jdouble ceil(jdouble);
  46. static jdouble floor(jdouble);
  47. static jdouble rint(jdouble);
  48. static jint round(jfloat);
  49. static jlong round(jdouble);
  50. static jdouble random();
  51. static jdouble toRadians(jdouble);
  52. static jdouble toDegrees(jdouble);
  53. private:
  54. static jint remPiOver2(jdouble, JArray< jdouble > *);
  55. static jint remPiOver2(JArray< jdouble > *, JArray< jdouble > *, jint, jint);
  56. static jdouble scale(jdouble, jint);
  57. static jdouble sin(jdouble, jdouble);
  58. static jdouble cos(jdouble, jdouble);
  59. static jdouble tan(jdouble, jdouble, jboolean);
  60. public:
  61. static jdouble signum(jdouble);
  62. static jfloat signum(jfloat);
  63. static jdouble ulp(jdouble);
  64. static jfloat ulp(jfloat);
  65. private:
  66. static ::java::util::Random * rand;
  67. public:
  68. static jdouble E;
  69. static jdouble PI;
  70. private:
  71. static jdouble TWO_16;
  72. static jdouble TWO_20;
  73. static jdouble TWO_24;
  74. static jdouble TWO_27;
  75. static jdouble TWO_28;
  76. static jdouble TWO_29;
  77. static jdouble TWO_31;
  78. static jdouble TWO_49;
  79. static jdouble TWO_52;
  80. static jdouble TWO_54;
  81. static jdouble TWO_57;
  82. static jdouble TWO_60;
  83. static jdouble TWO_64;
  84. static jdouble TWO_66;
  85. static jdouble TWO_1023;
  86. static JArray< jint > * TWO_OVER_PI;
  87. static JArray< jdouble > * PI_OVER_TWO;
  88. static jdouble PI_L;
  89. static jdouble PIO2_1;
  90. static jdouble PIO2_1L;
  91. static jdouble PIO2_2;
  92. static jdouble PIO2_2L;
  93. static jdouble PIO2_3;
  94. static jdouble PIO2_3L;
  95. static jdouble SQRT_1_5;
  96. static jdouble SQRT_2;
  97. static jdouble SQRT_3;
  98. static jdouble EXP_LIMIT_H;
  99. static jdouble EXP_LIMIT_L;
  100. static jdouble CP;
  101. static jdouble CP_H;
  102. static jdouble CP_L;
  103. static jdouble LN2;
  104. static jdouble LN2_H;
  105. static jdouble LN2_L;
  106. static jdouble INV_LN2;
  107. static jdouble INV_LN2_H;
  108. static jdouble INV_LN2_L;
  109. static jdouble LG1;
  110. static jdouble LG2;
  111. static jdouble LG3;
  112. static jdouble LG4;
  113. static jdouble LG5;
  114. static jdouble LG6;
  115. static jdouble LG7;
  116. static jdouble L1;
  117. static jdouble L2;
  118. static jdouble L3;
  119. static jdouble L4;
  120. static jdouble L5;
  121. static jdouble L6;
  122. static jdouble P1;
  123. static jdouble P2;
  124. static jdouble P3;
  125. static jdouble P4;
  126. static jdouble P5;
  127. static jdouble DP_H;
  128. static jdouble DP_L;
  129. static jdouble OVT;
  130. static jdouble S1;
  131. static jdouble S2;
  132. static jdouble S3;
  133. static jdouble S4;
  134. static jdouble S5;
  135. static jdouble S6;
  136. static jdouble C1;
  137. static jdouble C2;
  138. static jdouble C3;
  139. static jdouble C4;
  140. static jdouble C5;
  141. static jdouble C6;
  142. static jdouble T0;
  143. static jdouble T1;
  144. static jdouble T2;
  145. static jdouble T3;
  146. static jdouble T4;
  147. static jdouble T5;
  148. static jdouble T6;
  149. static jdouble T7;
  150. static jdouble T8;
  151. static jdouble T9;
  152. static jdouble T10;
  153. static jdouble T11;
  154. static jdouble T12;
  155. static jdouble PS0;
  156. static jdouble PS1;
  157. static jdouble PS2;
  158. static jdouble PS3;
  159. static jdouble PS4;
  160. static jdouble PS5;
  161. static jdouble QS1;
  162. static jdouble QS2;
  163. static jdouble QS3;
  164. static jdouble QS4;
  165. static jdouble ATAN_0_5H;
  166. static jdouble ATAN_0_5L;
  167. static jdouble ATAN_1_5H;
  168. static jdouble ATAN_1_5L;
  169. static jdouble AT0;
  170. static jdouble AT1;
  171. static jdouble AT2;
  172. static jdouble AT3;
  173. static jdouble AT4;
  174. static jdouble AT5;
  175. static jdouble AT6;
  176. static jdouble AT7;
  177. static jdouble AT8;
  178. static jdouble AT9;
  179. static jdouble AT10;
  180. static const jint CBRT_B1 = 715094163;
  181. static const jint CBRT_B2 = 696219795;
  182. static jdouble CBRT_C;
  183. static jdouble CBRT_D;
  184. static jdouble CBRT_E;
  185. static jdouble CBRT_F;
  186. static jdouble CBRT_G;
  187. static jdouble EXPM1_Q1;
  188. static jdouble EXPM1_Q2;
  189. static jdouble EXPM1_Q3;
  190. static jdouble EXPM1_Q4;
  191. static jdouble EXPM1_Q5;
  192. public:
  193. static ::java::lang::Class class$;
  194. };
  195. #endif // __java_lang_StrictMath__