mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
add: reflect16
rem: swapbits, reflect
This commit is contained in:
parent
e396575424
commit
cf44d04be1
2 changed files with 22 additions and 29 deletions
|
@ -40,11 +40,9 @@
|
|||
#endif
|
||||
|
||||
size_t nbytes(size_t nbits);
|
||||
uint32_t SwapBits(uint32_t value, int nrbits);
|
||||
uint32_t reflect(uint32_t v, int b);
|
||||
|
||||
// dedicated 8bit reversal
|
||||
uint8_t reflect8(uint8_t b);
|
||||
extern uint8_t reflect8(uint8_t b); // dedicated 8bit reversal
|
||||
extern uint16_t reflect16(uint16_t b); // dedicated 16bit reversal
|
||||
|
||||
void num_to_bytes(uint64_t n, size_t len, uint8_t* dest);
|
||||
uint64_t bytes_to_num(uint8_t* src, size_t len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue