Lines Matching refs:sign

50      * to to least significant, sign, exponent, and significand.
53 * [sign|exponent| fractional_significand]
62 * (-1)^sign * 2^(exponent)*(1.fractional_significand)
82 * The 32-bit float format has 1 sign bit, 8 exponent bits, and 23
85 * sign bit, 11 exponent bits, and 52 bits for the significand
91 * (-1)^sign * 2^(E_min)*(0.fractional_significand)
94 * zero bits in the significand; zero can have either sign.
185 * Returns the first floating-point argument with the sign of the
188 * does not require NaN {@code sign} arguments to be treated
194 * @param sign the parameter providing the sign of the result
196 * and the sign of {@code sign}.
199 public static double rawCopySign(double magnitude, double sign) {
200 return Double.longBitsToDouble((Double.doubleToRawLongBits(sign) &
208 * Returns the first floating-point argument with the sign of the
211 * does not require NaN {@code sign} arguments to be treated
217 * @param sign the parameter providing the sign of the result
219 * and the sign of {@code sign}.
222 public static float rawCopySign(float magnitude, float sign) {
223 return Float.intBitsToFloat((Float.floatToRawIntBits(sign) &
404 // (transducer << (# exponent and sign bits).
474 // (transducer << (# exponent and sign bits).
545 * the same sign as {@code d}.
552 * same sign is returned.
554 * sign is returned.
654 * sign as {@code f}.
661 * same sign is returned.
663 * sign is returned.
712 * magnitude, then a zero with the same sign as {@code start}
718 * same sign as {@code start} is returned.
723 * infinity with same sign as {@code start} is returned.
805 * zero with the same sign as {@code direction} is returned
812 * magnitude, then a zero with the same sign as {@code start}
818 * same sign as {@code start} is returned.
823 * infinity with same sign as {@code start} is returned.
1039 * Returns the first floating-point argument with the sign of the
1041 * {@code sign} argument is always treated as if it were
1045 * @param sign the parameter providing the sign of the result
1047 * and the sign of {@code sign}.
1051 public static double copySign(double magnitude, double sign) {
1052 return rawCopySign(magnitude, (isNaN(sign)?1.0d:sign));
1056 * Returns the first floating-point argument with the sign of the
1058 * {@code sign} argument is always treated as if it were
1062 * @param sign the parameter providing the sign of the result
1064 * and the sign of {@code sign}.
1067 public static float copySign(float magnitude, float sign) {
1068 return rawCopySign(magnitude, (isNaN(sign)?1.0f:sign));