Use macros where possible
Apply `constrain`, `NOMORE`, `NOLESS` and `CRITICAL_SECTION` macros wherever possible.
This commit is contained in:
parent
c8f76bb8aa
commit
209f5f21e0
8 changed files with 21 additions and 31 deletions
|
|
@ -203,8 +203,7 @@ double r8mat_amax(int m, int n, double a[])
|
|||
double value = r8_abs(a[0 + 0 * m]);
|
||||
for (int j = 0; j < n; j++) {
|
||||
for (int i = 0; i < m; i++) {
|
||||
if (value < r8_abs(a[i + j * m]))
|
||||
value = r8_abs(a[i + j * m]);
|
||||
NOLESS(value, r8_abs(a[i + j * m]));
|
||||
}
|
||||
}
|
||||
return value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue