11 Mar
2009
11 Mar
'09
15:13
2009/3/11 Matthias Hopf
-#define OFFSET_X(x) (x) +#define OFFSET_X(x) (((x) >= 0) ? ((x) & 0x0f) : (((-(x)-1) & 0x0f) ^ 0x1f))
Shouldn't
#define OFFSET_X(x) ((x) & 0x1f) /* 5 bit signed two's complement -16..15 */
be enough?...
Hm, you're right. I wrote this pretty early in the morning, and apparently didn't think it through enough. Thanks, -- Yang Zhao http://yangman.ca -- To unsubscribe, e-mail: radeonhd+unsubscribe@opensuse.org For additional commands, e-mail: radeonhd+help@opensuse.org