mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
armsrc: clarify static vars vs global vars, part 3
This commit is contained in:
parent
1784a3437f
commit
cb8d589fc4
16 changed files with 25 additions and 32 deletions
|
@ -12,7 +12,7 @@
|
|||
// b is 8bit lsfr
|
||||
// c keeps track on which step the prng is.
|
||||
// legic_prng_get_bit() = gets a bit muxed from a and b.
|
||||
struct lfsr {
|
||||
static struct lfsr {
|
||||
uint8_t a;
|
||||
uint8_t b;
|
||||
uint32_t c;
|
||||
|
|
|
@ -25,7 +25,7 @@ const uint8_t OddByteParity[256] = {
|
|||
0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0,
|
||||
1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1
|
||||
};
|
||||
|
||||
/*
|
||||
const uint8_t EvenByteParity[256] = {
|
||||
0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0,
|
||||
1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1,
|
||||
|
@ -44,4 +44,4 @@ const uint8_t EvenByteParity[256] = {
|
|||
1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1,
|
||||
0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0
|
||||
};
|
||||
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue