1 SUBROUTINE immadd( M, N, ALPHA, A, LDA, BETA, B, LDB )
13 INTEGER A( LDA, * ), B( LDB, * )
69 parameter( one = 1, zero = 0 )
76 IF( alpha.EQ.one )
THEN
77 IF( beta.EQ.zero )
THEN
83 ELSE IF( beta.NE.one )
THEN
86 b( i, j ) = a( i, j ) + beta * b( i, j )
92 b( i, j ) = a( i, j ) + b( i, j )
96 ELSE IF( alpha.NE.zero )
THEN
97 IF( beta.EQ.zero )
THEN
100 b( i, j ) = alpha * a( i, j )
103 ELSE IF( beta.NE.one )
THEN
106 b( i, j ) = alpha * a( i, j ) + beta * b( i, j )
112 b( i, j ) = alpha * a( i, j ) + b( i, j )
117 IF( beta.EQ.zero )
THEN
123 ELSE IF( beta.NE.one )
THEN
126 b( i, j ) = beta * b( i, j )