mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
parent
b4762e2712
commit
9c624f67b3
31 changed files with 176 additions and 183 deletions
|
@ -799,15 +799,15 @@ prev(poly_t *poly) {
|
|||
unsigned long fulllength = poly->length + ofs;
|
||||
bmp_t accu;
|
||||
|
||||
if(ofs)
|
||||
if(ofs) {
|
||||
/* removable optimisation */
|
||||
if(poly->length < (unsigned long) BMP_BIT) {
|
||||
*poly->bitmap = rev(*poly->bitmap >> ofs, (int) poly->length) << ofs;
|
||||
return;
|
||||
}
|
||||
|
||||
/* claim remaining bits of last word (as we use public function pshift()) */
|
||||
poly->length = fulllength;
|
||||
}
|
||||
/* claim remaining bits of last word (as we use public function pshift()) */
|
||||
poly->length = fulllength;
|
||||
|
||||
/* reverse and swap words in the array, leaving it right-justified */
|
||||
while(leftidx < rightidx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue