rename globals GraphTraceLen OddByteParity pm3_capabilities

This commit is contained in:
Philippe Teuwen committed 2021-08-21 17:53:54 +02:00
1 parent 6e0ce662c7
commit ce57637c80
20 files changed
+167 -167

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
//-----------------------------------------------------------------------------
#include "parity.h"
const uint8_t OddByteParity[256] = {
const uint8_t g_OddByteParity[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,
0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0,
+3 -3
View File
@@ -13,14 +13,14 @@
#include "common.h"
extern const uint8_t OddByteParity[256];
extern const uint8_t g_OddByteParity[256];
static inline uint8_t oddparity8(const uint8_t x) {
return OddByteParity[x];
return g_OddByteParity[x];
}
static inline uint8_t evenparity8(const uint8_t x) {
return !OddByteParity[x];
return !g_OddByteParity[x];
}
static inline uint8_t evenparity16(uint16_t x) {