3 doublereal dasum_(integer *n, doublereal *dx, integer *incx)
5 /* System generated locals */
7 doublereal ret_val, d__1, d__2, d__3, d__4, d__5, d__6;
14 /* .. Scalar Arguments .. */
16 /* .. Array Arguments .. */
22 /* takes the sum of the absolute values. */
23 /* jack dongarra, linpack, 3/11/78. */
24 /* modified 3/93 to return if incx .le. 0. */
25 /* modified 12/3/93, array(1) declarations changed to array(*) */
28 /* .. Local Scalars .. */
30 /* .. Intrinsic Functions .. */
32 /* Parameter adjustments */
38 if (*n <= 0 || *incx <= 0) {
45 /* code for increment not equal to 1 */
50 for (i__ = 1; i__2 < 0 ? i__ >= i__1 : i__ <= i__1; i__ += i__2) {
51 dtemp += (d__1 = dx[i__], abs(d__1));
57 /* code for increment equal to 1 */
68 for (i__ = 1; i__ <= i__2; ++i__) {
69 dtemp += (d__1 = dx[i__], abs(d__1));
78 for (i__ = mp1; i__ <= i__2; i__ += 6) {
79 dtemp = dtemp + (d__1 = dx[i__], abs(d__1)) + (d__2 = dx[i__ + 1],
80 abs(d__2)) + (d__3 = dx[i__ + 2], abs(d__3)) + (d__4 = dx[i__
81 + 3], abs(d__4)) + (d__5 = dx[i__ + 4], abs(d__5)) + (d__6 =
82 dx[i__ + 5], abs(d__6));