mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 05:13:22 -07:00
Code cleanup:
- correctly use inttypes.h scanf and printf macros (PRIx64 et al) - fix indendation warnings
This commit is contained in:
parent
2d0717853d
commit
43534cbad2
14 changed files with 58 additions and 57 deletions
|
@ -786,15 +786,16 @@ 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