codice:unsigned char reverse_byte(unsigned char x) { unsigned char t; t=(x & 0x80)>>7 | (x & 0x40)>>5 | (x & 0x20)>>3 | (x & 0x10)>>1 | (x & 0x08)<<1 | (x & 0x04)<<3 | (x & 0x02)<<5 | (x & 0x01)<<7; return t; }
codice:unsigned char reverse_byte(unsigned char x) { unsigned char t; t=(x & 0x80)>>7 | (x & 0x40)>>5 | (x & 0x20)>>3 | (x & 0x10)>>1 | (x & 0x08)<<1 | (x & 0x04)<<3 | (x & 0x02)<<5 | (x & 0x01)<<7; return t; }
Leggi il REGOLAMENTO!
E' molto complicato, un mucchio di input e output, una quantità di informazioni, un mucchio di elementi da considerare, ho una quantità di elementi da tener presente...
Drugo