Re: file generator...(beginning) Friday, 26-Feb-99 19:52:38 Snakebyte_, ROL= rotate left. There isn't a quick way to do this in C so you would use something like: a= (b<<1)+(b>>31) which is a rol b,1 instruction basically. (In practice rol eax,1 or whatever). We have b<<1 which multiplies b by 2^1, or shifts b left 1 place. We then need to wraparound the high bit of b, which is the b>>31 bit (or divide b by 2^31). In summary, a=(b< for a k-bit rotation left, Cronos. Cronos |
snakebyte's thread (snakebyte__@hotmail.com) (20-Feb-99 09:08:43) |