ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/Changes
(Generate patch)

Comparing libecb/Changes (file contents):
Revision 1.2 by root, Wed Jun 22 15:18:06 2011 UTC vs.
Revision 1.3 by root, Sat Dec 10 11:58:38 2011 UTC

1TODO: ffs/clz 1TODO: ffs/clz
264 bit variants of everything 264 bit variants of everything
3TODO: examples from X for clz/ctz 3TODO: examples from X for clz/ctz
4TODO: arithmetic right shift
5TODO: bit reversal
6TODO: template/generic functions for x32/x64 and so on
7TODO: generalised shift
8unsigned long gensh(unsigned long v, int x) {
9int a, b;
10 a = (v << x) & -(((unsigned int)x) < 32);
11 x = -x;
12 b = (v >> x) & -(((unsigned int)x) < 32);
13 return a|b;
14}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines