3 doublereal sdot_(integer *n, real *sx, integer *incx, real *sy, integer *incy)
5 /* System generated locals */
10 integer i__, m, ix, iy, mp1;
13 /* .. Scalar Arguments .. */
15 /* .. Array Arguments .. */
21 /* forms the dot product of two vectors. */
22 /* uses unrolled loops for increments equal to one. */
23 /* jack dongarra, linpack, 3/11/78. */
24 /* modified 12/3/93, array(1) declarations changed to array(*) */
27 /* .. Local Scalars .. */
29 /* .. Intrinsic Functions .. */
31 /* Parameter adjustments */
41 if (*incx == 1 && *incy == 1) {
45 /* code for unequal increments or equal increments */
51 ix = (-(*n) + 1) * *incx + 1;
54 iy = (-(*n) + 1) * *incy + 1;
57 for (i__ = 1; i__ <= i__1; ++i__) {
58 stemp += sx[ix] * sy[iy];
66 /* code for both increments equal to 1 */
77 for (i__ = 1; i__ <= i__1; ++i__) {
78 stemp += sx[i__] * sy[i__];
87 for (i__ = mp1; i__ <= i__1; i__ += 5) {
88 stemp = stemp + sx[i__] * sy[i__] + sx[i__ + 1] * sy[i__ + 1] + sx[
89 i__ + 2] * sy[i__ + 2] + sx[i__ + 3] * sy[i__ + 3] + sx[i__ +