mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-28 12:06:59 +03:00
Provide bitcount()
This commit is contained in:
@@ -792,7 +792,7 @@ static const char *regstyle(int n, int regword) {
|
||||
}
|
||||
|
||||
// Return the number of bits set in Number
|
||||
static unsigned bitcount(unsigned n) {
|
||||
unsigned bitcount(unsigned n) {
|
||||
unsigned ret;
|
||||
|
||||
// A la Kernighan (and Richie): iteratively clear the least significant bit set
|
||||
|
||||
@@ -1744,6 +1744,7 @@ extern "C" {
|
||||
int disasm_init(const AVRPART *p);
|
||||
int disasm_init_tagfile(const AVRPART *p, const char *file);
|
||||
void disasm_zap_jumpcalls();
|
||||
unsigned bitcount(unsigned n);
|
||||
|
||||
int dist_rjmp(uint16_t rjmp, int flashsize);
|
||||
uint16_t rjmp_opcode(int dist, int flashsize);
|
||||
|
||||
Reference in New Issue
Block a user