Lines Matching defs:exponent
692 /* we can have an optional exponent part */
722 S_mulexp10(NV value, I32 exponent)
729 if (exponent == 0)
737 * to support G_FLOAT on both VAX and Alpha, and though the exponent
757 if (exponent >= NV_MAX_10_EXP || exponent + exp_v >= NV_MAX_10_EXP)
759 if (exponent < 0) {
760 if (-(exponent + exp_v) >= NV_MAX_10_EXP)
762 while (-exponent >= NV_MAX_10_EXP) {
763 /* combination does not overflow, but 10^(-exponent) does */
765 ++exponent;
771 if (exponent < 0) {
773 exponent = -exponent;
775 for (bit = 1; exponent; bit <<= 1) {
776 if (exponent & bit) {
777 exponent ^= bit;
782 if (exponent == 0) break;
826 /* the current exponent adjust for the accumulators */
827 I32 exponent = 0;
837 * For example a 32-bit mantissa with an exponent of 4 would have
952 exponent = exponent * 10 + (*s++ - '0');
954 exponent = -exponent;
959 /* now apply the exponent */
962 result[2] = S_mulexp10(result[0],exponent+exp_adjust[0])
963 + S_mulexp10(result[1],exponent-exp_adjust[1]);
965 result[2] = S_mulexp10(result[0],exponent+exp_adjust[0]);