@@ -41,12 +41,8 @@ subroutine daxpy(n, da, dx, incx, dy, incy)
41
41
if (n <= 0_ip ) return
42
42
if (da == 0.0_wp ) return
43
43
if (incx == 1_ip .and. incy == 1_ip ) then
44
- !
45
- ! code for both increments equal to 1
46
- !
47
- !
48
- ! clean-up loop
49
- !
44
+ ! code for both increments equal to 1
45
+ ! clean-up loop
50
46
m = mod (n, 4_ip )
51
47
if (m /= 0_ip ) then
52
48
do i = 1_ip , m
@@ -62,10 +58,8 @@ subroutine daxpy(n, da, dx, incx, dy, incy)
62
58
dy(i + 3_ip ) = dy(i + 3_ip ) + da* dx(i + 3_ip )
63
59
end do
64
60
else
65
- !
66
- ! code for unequal increments or equal increments
67
- ! not equal to 1
68
- !
61
+ ! code for unequal increments or equal increments
62
+ ! not equal to 1
69
63
ix = 1_ip
70
64
iy = 1_ip
71
65
if (incx < 0_ip ) ix = (- n + 1_ip )* incx + 1_ip
@@ -90,12 +84,8 @@ subroutine dcopy(n, dx, incx, dy, incy)
90
84
91
85
if (n <= 0_ip ) return
92
86
if (incx == 1_ip .and. incy == 1_ip ) then
93
- !
94
- ! code for both increments equal to 1
95
- !
96
- !
97
- ! clean-up loop
98
- !
87
+ ! code for both increments equal to 1
88
+ ! clean-up loop
99
89
m = mod (n, 7_ip )
100
90
if (m /= 0_ip ) then
101
91
do i = 1_ip , m
@@ -114,10 +104,8 @@ subroutine dcopy(n, dx, incx, dy, incy)
114
104
dy(i + 6_ip ) = dx(i + 6_ip )
115
105
end do
116
106
else
117
- !
118
- ! code for unequal increments or equal increments
119
- ! not equal to 1
120
- !
107
+ ! code for unequal increments or equal increments
108
+ ! not equal to 1
121
109
ix = 1_ip
122
110
iy = 1_ip
123
111
if (incx < 0_ip ) ix = (- n + 1_ip )* incx + 1_ip
@@ -143,12 +131,8 @@ subroutine dscal(n, da, dx, incx)
143
131
144
132
if (n <= 0_ip .or. incx <= 0_ip ) return
145
133
if (incx == 1_ip ) then
146
- !
147
- ! code for increment equal to 1
148
- !
149
- !
150
- ! clean-up loop
151
- !
134
+ ! code for increment equal to 1
135
+ ! clean-up loop
152
136
m = mod (n, 5_ip )
153
137
if (m /= 0_ip ) then
154
138
do i = 1_ip , m
@@ -165,9 +149,7 @@ subroutine dscal(n, da, dx, incx)
165
149
dx(i + 4_ip ) = da* dx(i + 4_ip )
166
150
end do
167
151
else
168
- !
169
- ! code for increment not equal to 1
170
- !
152
+ ! code for increment not equal to 1
171
153
nincx = n* incx
172
154
do i = 1_ip , nincx, incx
173
155
dx(i) = da* dx(i)
@@ -188,12 +170,8 @@ subroutine dswap(n, dx, incx, dy, incy)
188
170
189
171
if (n <= 0_ip ) return
190
172
if (incx == 1_ip .and. incy == 1_ip ) then
191
- !
192
- ! code for both increments equal to 1
193
- !
194
- !
195
- ! clean-up loop
196
- !
173
+ ! code for both increments equal to 1
174
+ ! clean-up loop
197
175
m = mod (n, 3_ip )
198
176
if (m /= 0_ip ) then
199
177
do i = 1_ip , m
@@ -216,10 +194,8 @@ subroutine dswap(n, dx, incx, dy, incy)
216
194
dy(i + 2_ip ) = dtemp
217
195
end do
218
196
else
219
- !
220
- ! code for unequal increments or equal increments not equal
221
- ! to 1
222
- !
197
+ ! code for unequal increments or equal increments not equal
198
+ ! to 1
223
199
ix = 1
224
200
iy = 1
225
201
if (incx < 0_ip ) ix = (- n + 1_ip )* incx + 1_ip
0 commit comments