Lines Matching refs:sum
408 * \return saturated sum of a and b.
412 LONG sum;
414 sum = (LONG)(SHORT)a + (LONG)(SHORT)b;
415 sum = fMax(fMin((INT)sum, (INT)MAXVAL_SGL), (INT)MINVAL_SGL);
416 return (FIXP_SGL)(SHORT)sum;
423 * \return saturated sum of a and b.
427 LONG sum;
429 sum = (LONG)(a>>1) + (LONG)(b>>1);
430 sum = fMax(fMin((INT)sum, (INT)(MAXVAL_DBL>>1)), (INT)(MINVAL_DBL>>1));
431 return (FIXP_DBL)(LONG)(sum<<1);