@@ -398,6 +398,10 @@ public static double log10(double a) {
398
398
* Otherwise, the result is the {@code double} value closest to
399
399
* the true mathematical square root of the argument value.
400
400
*
401
+ * @apiNote
402
+ * This method corresponds to the squareRoot operation defined in
403
+ * IEEE 754.
404
+ *
401
405
* @param a a value.
402
406
* @return the positive square root of {@code a}.
403
407
* If the argument is NaN or less than zero, the result is NaN.
@@ -481,6 +485,9 @@ public static double IEEEremainder(double f1, double f2) {
481
485
* that the value of {@code Math.ceil(x)} is exactly the
482
486
* value of {@code -Math.floor(-x)}.
483
487
*
488
+ * @apiNote
489
+ * This method corresponds to the roundToIntegralTowardPositive
490
+ * operation defined in IEEE 754.
484
491
*
485
492
* @param a a value.
486
493
* @return the smallest (closest to negative infinity)
@@ -502,6 +509,10 @@ public static double ceil(double a) {
502
509
* positive zero or negative zero, then the result is the same as
503
510
* the argument.</ul>
504
511
*
512
+ * @apiNote
513
+ * This method corresponds to the roundToIntegralTowardNegative
514
+ * operation defined in IEEE 754.
515
+ *
505
516
* @param a a value.
506
517
* @return the largest (closest to positive infinity)
507
518
* floating-point value that less than or equal to the argument
@@ -523,6 +534,10 @@ public static double floor(double a) {
523
534
* <li>If the argument is NaN or an infinity or positive zero or negative
524
535
* zero, then the result is the same as the argument.</ul>
525
536
*
537
+ * @apiNote
538
+ * This method corresponds to the roundToIntegralTiesToEven
539
+ * operation defined in IEEE 754.
540
+ *
526
541
* @param a a {@code double} value.
527
542
* @return the closest floating-point value to {@code a} that is
528
543
* equal to a mathematical integer.
@@ -2033,6 +2048,10 @@ public static long max(long a, long b) {
2033
2048
* argument is positive zero and the other negative zero, the
2034
2049
* result is positive zero.
2035
2050
*
2051
+ * @apiNote
2052
+ * This method corresponds to the maximum operation defined in
2053
+ * IEEE 754.
2054
+ *
2036
2055
* @param a an argument.
2037
2056
* @param b another argument.
2038
2057
* @return the larger of {@code a} and {@code b}.
@@ -2060,6 +2079,10 @@ public static float max(float a, float b) {
2060
2079
* argument is positive zero and the other negative zero, the
2061
2080
* result is positive zero.
2062
2081
*
2082
+ * @apiNote
2083
+ * This method corresponds to the maximum operation defined in
2084
+ * IEEE 754.
2085
+ *
2063
2086
* @param a an argument.
2064
2087
* @param b another argument.
2065
2088
* @return the larger of {@code a} and {@code b}.
@@ -2116,6 +2139,10 @@ public static long min(long a, long b) {
2116
2139
* one argument is positive zero and the other is negative zero,
2117
2140
* the result is negative zero.
2118
2141
*
2142
+ * @apiNote
2143
+ * This method corresponds to the minimum operation defined in
2144
+ * IEEE 754.
2145
+ *
2119
2146
* @param a an argument.
2120
2147
* @param b another argument.
2121
2148
* @return the smaller of {@code a} and {@code b}.
@@ -2143,6 +2170,10 @@ public static float min(float a, float b) {
2143
2170
* argument is positive zero and the other is negative zero, the
2144
2171
* result is negative zero.
2145
2172
*
2173
+ * @apiNote
2174
+ * This method corresponds to the minimum operation defined in
2175
+ * IEEE 754.
2176
+ *
2146
2177
* @param a an argument.
2147
2178
* @param b another argument.
2148
2179
* @return the smaller of {@code a} and {@code b}.
@@ -2198,7 +2229,7 @@ public static double min(double a, double b) {
2198
2229
* equivalent to ({@code a * b}) however.
2199
2230
*
2200
2231
* @apiNote This method corresponds to the fusedMultiplyAdd
2201
- * operation defined in IEEE 754-2008 .
2232
+ * operation defined in IEEE 754.
2202
2233
*
2203
2234
* @param a a value
2204
2235
* @param b a value
@@ -2312,7 +2343,7 @@ public static double fma(double a, double b, double c) {
2312
2343
* equivalent to ({@code a * b}) however.
2313
2344
*
2314
2345
* @apiNote This method corresponds to the fusedMultiplyAdd
2315
- * operation defined in IEEE 754-2008 .
2346
+ * operation defined in IEEE 754.
2316
2347
*
2317
2348
* @param a a value
2318
2349
* @param b a value
@@ -2692,6 +2723,10 @@ public static double log1p(double x) {
2692
2723
* permitted to treat some NaN arguments as positive and other NaN
2693
2724
* arguments as negative to allow greater performance.
2694
2725
*
2726
+ * @apiNote
2727
+ * This method corresponds to the copySign operation defined in
2728
+ * IEEE 754.
2729
+ *
2695
2730
* @param magnitude the parameter providing the magnitude of the result
2696
2731
* @param sign the parameter providing the sign of the result
2697
2732
* @return a value with the magnitude of {@code magnitude}
@@ -2716,6 +2751,10 @@ public static double copySign(double magnitude, double sign) {
2716
2751
* permitted to treat some NaN arguments as positive and other NaN
2717
2752
* arguments as negative to allow greater performance.
2718
2753
*
2754
+ * @apiNote
2755
+ * This method corresponds to the copySign operation defined in
2756
+ * IEEE 754.
2757
+ *
2719
2758
* @param magnitude the parameter providing the magnitude of the result
2720
2759
* @param sign the parameter providing the sign of the result
2721
2760
* @return a value with the magnitude of {@code magnitude}
@@ -2739,8 +2778,12 @@ public static float copySign(float magnitude, float sign) {
2739
2778
* <li>If the argument is NaN or infinite, then the result is
2740
2779
* {@link Float#MAX_EXPONENT} + 1.
2741
2780
* <li>If the argument is zero or subnormal, then the result is
2742
- * {@link Float#MIN_EXPONENT} -1.
2781
+ * {@link Float#MIN_EXPONENT} - 1.
2743
2782
* </ul>
2783
+ * @apiNote
2784
+ * This method is analogous to the logB operation defined in IEEE
2785
+ * 754, but returns a different value on subnormal arguments.
2786
+ *
2744
2787
* @param f a {@code float} value
2745
2788
* @return the unbiased exponent of the argument
2746
2789
* @since 1.6
@@ -2763,8 +2806,12 @@ public static int getExponent(float f) {
2763
2806
* <li>If the argument is NaN or infinite, then the result is
2764
2807
* {@link Double#MAX_EXPONENT} + 1.
2765
2808
* <li>If the argument is zero or subnormal, then the result is
2766
- * {@link Double#MIN_EXPONENT} -1.
2809
+ * {@link Double#MIN_EXPONENT} - 1.
2767
2810
* </ul>
2811
+ * @apiNote
2812
+ * This method is analogous to the logB operation defined in IEEE
2813
+ * 754, but returns a different value on subnormal arguments.
2814
+ *
2768
2815
* @param d a {@code double} value
2769
2816
* @return the unbiased exponent of the argument
2770
2817
* @since 1.6
@@ -2968,6 +3015,9 @@ public static float nextAfter(float start, double direction) {
2968
3015
*
2969
3016
* </ul>
2970
3017
*
3018
+ * @apiNote This method corresponds to the nextUp
3019
+ * operation defined in IEEE 754.
3020
+ *
2971
3021
* @param d starting floating-point value
2972
3022
* @return The adjacent floating-point value closer to positive
2973
3023
* infinity.
@@ -3004,6 +3054,9 @@ public static double nextUp(double d) {
3004
3054
*
3005
3055
* </ul>
3006
3056
*
3057
+ * @apiNote This method corresponds to the nextUp
3058
+ * operation defined in IEEE 754.
3059
+ *
3007
3060
* @param f starting floating-point value
3008
3061
* @return The adjacent floating-point value closer to positive
3009
3062
* infinity.
@@ -3040,6 +3093,9 @@ public static float nextUp(float f) {
3040
3093
*
3041
3094
* </ul>
3042
3095
*
3096
+ * @apiNote This method corresponds to the nextDown
3097
+ * operation defined in IEEE 754.
3098
+ *
3043
3099
* @param d starting floating-point value
3044
3100
* @return The adjacent floating-point value closer to negative
3045
3101
* infinity.
@@ -3077,6 +3133,9 @@ public static double nextDown(double d) {
3077
3133
*
3078
3134
* </ul>
3079
3135
*
3136
+ * @apiNote This method corresponds to the nextDown
3137
+ * operation defined in IEEE 754.
3138
+ *
3080
3139
* @param f starting floating-point value
3081
3140
* @return The adjacent floating-point value closer to negative
3082
3141
* infinity.
@@ -3116,6 +3175,9 @@ public static float nextDown(float f) {
3116
3175
* sign is returned.
3117
3176
* </ul>
3118
3177
*
3178
+ * @apiNote This method corresponds to the scaleB operation
3179
+ * defined in IEEE 754.
3180
+ *
3119
3181
* @param d number to be scaled by a power of two.
3120
3182
* @param scaleFactor power of 2 used to scale {@code d}
3121
3183
* @return {@code d} × 2<sup>{@code scaleFactor}</sup>
@@ -3200,6 +3262,9 @@ public static double scalb(double d, int scaleFactor) {
3200
3262
* sign is returned.
3201
3263
* </ul>
3202
3264
*
3265
+ * @apiNote This method corresponds to the scaleB operation
3266
+ * defined in IEEE 754.
3267
+ *
3203
3268
* @param f number to be scaled by a power of two.
3204
3269
* @param scaleFactor power of 2 used to scale {@code f}
3205
3270
* @return {@code f} × 2<sup>{@code scaleFactor}</sup>
1 commit comments
openjdk-notifier[bot] commentedon Jun 7, 2022
Review
Issues