Lines Matching defs:sum
77 struct dd sum;
80 sum = dd_add(a, b);
81 if (sum.lo != 0) {
82 EXTRACT_WORD64(hibits, sum.hi);
84 /* hibits += (int)copysign(1.0, sum.hi * sum.lo) */
85 EXTRACT_WORD64(lobits, sum.lo);
87 INSERT_WORD64(sum.hi, hibits);
90 return (sum.hi);
101 struct dd sum;
105 sum = dd_add(a, b);
110 * lowest bit of sum.hi to make it a sticky bit summarizing all the
111 * bits in sum.lo. With the sticky bit adjusted, the hardware will
117 if (sum.lo != 0) {
118 EXTRACT_WORD64(hibits, sum.hi);
121 /* hibits += (int)copysign(1.0, sum.hi * sum.lo) */
122 EXTRACT_WORD64(lobits, sum.lo);
124 INSERT_WORD64(sum.hi, hibits);
127 return (ldexp(sum.hi, scale));