mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
components/bt: Fix warning when disable debug logs or in release mode and improve the code structure
This commit is contained in:
@@ -241,25 +241,25 @@ static uint_8t gf_inv(const uint_8t x)
|
||||
}
|
||||
|
||||
for ( ; ; ) {
|
||||
if (n1)
|
||||
if (n1) {
|
||||
while (n2 >= n1) { /* divide polynomial p2 by p1 */
|
||||
n2 /= n1; /* shift smaller polynomial left */
|
||||
p2 ^= (p1 * n2) & 0xff; /* and remove from larger one */
|
||||
v2 ^= (v1 * n2); /* shift accumulated value and */
|
||||
n2 = hibit(p2); /* add into result */
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return v1;
|
||||
}
|
||||
|
||||
if (n2) /* repeat with values swapped */
|
||||
if (n2) { /* repeat with values swapped */
|
||||
while (n1 >= n2) {
|
||||
n1 /= n2;
|
||||
p1 ^= p2 * n1;
|
||||
v1 ^= v2 * n1;
|
||||
n1 = hibit(p1);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return v2;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user