bithack - http://graphics.stanford.edu/~seander/bithacks.html

Fuzesi Arnold arnold.fuzesi.lista at gmail.com
Sun May 28 12:58:46 CEST 2006


bit reverse tablat keresgettem, es belefutottam egy jo kis oldalba:

Algoritmikus bitforgatas es hasonlo nyalanksagok, pl:

unsigned char b; // reverse this byte

b = ((b * 0x80200802ULL) & 0x0884422110ULL) * 0x0101010101ULL >> 32;

Kurvajó! :)
http://graphics.stanford.edu/~seander/bithacks.html

A.




More information about the Elektro mailing list