mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Change commenting style
This commit is contained in:
parent
9af3d720cb
commit
3fd2bb114a
7 changed files with 81 additions and 47 deletions
|
|
@ -25,9 +25,11 @@ static __always_inline int raid_invert_fast(uint8_t *M, int n)
|
|||
for (k = 0; k < n; ++k) {
|
||||
uint8_t f;
|
||||
|
||||
/* the diagonal element cannot be 0 because */
|
||||
/* we are inverting matrices with all the square */
|
||||
/* submatrices not singular */
|
||||
/*
|
||||
* The diagonal element cannot be 0 because
|
||||
* we are inverting matrices with all the square
|
||||
* submatrices not singular
|
||||
*/
|
||||
if (M[k * n + k] == 0)
|
||||
return -1;
|
||||
|
||||
|
|
@ -36,8 +38,10 @@ static __always_inline int raid_invert_fast(uint8_t *M, int n)
|
|||
for (j = 0; j < n; ++j)
|
||||
M[k * n + j] = mul(f, M[k * n + j]);
|
||||
|
||||
/* make all the elements over and under the diagonal */
|
||||
/* to be zero */
|
||||
/*
|
||||
* Make all the elements over and under the diagonal
|
||||
* to be zero
|
||||
*/
|
||||
for (i = 0; i < n; ++i) {
|
||||
if (i == k)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue