```01:       REAL FUNCTION SASUM(N,SX,INCX)
02: *     .. Scalar Arguments ..
03:       INTEGER INCX,N
04: *     ..
05: *     .. Array Arguments ..
06:       REAL SX(*)
07: *     ..
08: *
09: *  Purpose
10: *  =======
11: *
12: *     SASUM takes the sum of the absolute values.
13: *     uses unrolled loops for increment equal to one.
14: *
15: *  Further Details
16: *  ===============
17: *
18: *     jack dongarra, linpack, 3/11/78.
19: *     modified 3/93 to return if incx .le. 0.
20: *     modified 12/3/93, array(1) declarations changed to array(*)
21: *
22: *  =====================================================================
23: *
24: *     .. Local Scalars ..
25:       REAL STEMP
26:       INTEGER I,M,MP1,NINCX
27: *     ..
28: *     .. Intrinsic Functions ..
29:       INTRINSIC ABS,MOD
30: *     ..
31:       SASUM = 0.0e0
32:       STEMP = 0.0e0
33:       IF (N.LE.0 .OR. INCX.LE.0) RETURN
34:       IF (INCX.EQ.1) GO TO 20
35: *
36: *        code for increment not equal to 1
37: *
38:       NINCX = N*INCX
39:       DO 10 I = 1,NINCX,INCX
40:           STEMP = STEMP + ABS(SX(I))
41:    10 CONTINUE
42:       SASUM = STEMP
43:       RETURN
44: *
45: *        code for increment equal to 1
46: *
47: *
48: *        clean-up loop
49: *
50:    20 M = MOD(N,6)
51:       IF (M.EQ.0) GO TO 40
52:       DO 30 I = 1,M
53:           STEMP = STEMP + ABS(SX(I))
54:    30 CONTINUE
55:       IF (N.LT.6) GO TO 60
56:    40 MP1 = M + 1
57:       DO 50 I = MP1,N,6
58:           STEMP = STEMP + ABS(SX(I)) + ABS(SX(I+1)) + ABS(SX(I+2)) +
59:      +            ABS(SX(I+3)) + ABS(SX(I+4)) + ABS(SX(I+5))
60:    50 CONTINUE
61:    60 SASUM = STEMP
62:       RETURN
63:       END
64: ```