mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-01 05:07:03 +08:00
unshadow
This commit is contained in:
parent
a2176b722d
commit
ec278e60cc
1 changed files with 4 additions and 4 deletions
|
@ -835,11 +835,11 @@ uint32_t reflect(uint32_t v, int b) {
|
|||
}
|
||||
|
||||
uint64_t HornerScheme(uint64_t num, uint64_t divider, uint64_t factor) {
|
||||
uint64_t remainder = 0, quotient = 0, result = 0;
|
||||
remainder = num % divider;
|
||||
uint64_t remaind = 0, quotient = 0, result = 0;
|
||||
remaind = num % divider;
|
||||
quotient = num / divider;
|
||||
if (!(quotient == 0 && remainder == 0))
|
||||
result += HornerScheme(quotient, divider, factor) * factor + remainder;
|
||||
if (!(quotient == 0 && remaind == 0))
|
||||
result += HornerScheme(quotient, divider, factor) * factor + remaind;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue