/[classpath]/classpath/java/lang/StrictMath.java
ViewVC logotype

Diff of /classpath/java/lang/StrictMath.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mark, Sat Jul 2 20:32:39 2005 UTC revision 1.6 by tromey, Tue Sep 13 22:19:15 2005 UTC
# Line 1254  public final strictfp class StrictMath Line 1254  public final strictfp class StrictMath
1254    
1255    /**    /**
1256     * Super precision for 2/pi in 24-bit chunks, for use in     * Super precision for 2/pi in 24-bit chunks, for use in
1257     * {@link #remPiOver2()}.     * {@link #remPiOver2(double, double[])}.
1258     */     */
1259    private static final int TWO_OVER_PI[] = {    private static final int TWO_OVER_PI[] = {
1260      0xa2f983, 0x6e4e44, 0x1529fc, 0x2757d1, 0xf534dd, 0xc0db62,      0xa2f983, 0x6e4e44, 0x1529fc, 0x2757d1, 0xf534dd, 0xc0db62,
# Line 1272  public final strictfp class StrictMath Line 1272  public final strictfp class StrictMath
1272    
1273    /**    /**
1274     * Super precision for pi/2 in 24-bit chunks, for use in     * Super precision for pi/2 in 24-bit chunks, for use in
1275     * {@link #remPiOver2()}.     * {@link #remPiOver2(double, double[])}.
1276     */     */
1277    private static final double PI_OVER_TWO[] = {    private static final double PI_OVER_TWO[] = {
1278      1.570796251296997, // Long bits 0x3ff921fb40000000L.      1.570796251296997, // Long bits 0x3ff921fb40000000L.
# Line 1286  public final strictfp class StrictMath Line 1286  public final strictfp class StrictMath
1286    };    };
1287    
1288    /**    /**
1289     * More constants related to pi, used in {@link #remPiOver2()} and     * More constants related to pi, used in
1290     * elsewhere.     * {@link #remPiOver2(double, double[])} and elsewhere.
1291     */     */
1292    private static final double    private static final double
1293      PI_L = 1.2246467991473532e-16, // Long bits 0x3ca1a62633145c07L.      PI_L = 1.2246467991473532e-16, // Long bits 0x3ca1a62633145c07L.
# Line 1301  public final strictfp class StrictMath Line 1301  public final strictfp class StrictMath
1301    /**    /**
1302     * Natural log and square root constants, for calculation of     * Natural log and square root constants, for calculation of
1303     * {@link #exp(double)}, {@link #log(double)} and     * {@link #exp(double)}, {@link #log(double)} and
1304     * {@link #power(double, double)}. CP is 2/(3*ln(2)).     * {@link #pow(double, double)}. CP is 2/(3*ln(2)).
1305     */     */
1306    private static final double    private static final double
1307      SQRT_1_5 = 1.224744871391589, // Long bits 0x3ff3988e1409212eL.      SQRT_1_5 = 1.224744871391589, // Long bits 0x3ff3988e1409212eL.

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26