ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/Changes
Revision: 1.5
Committed: Mon May 28 08:28:26 2012 UTC (12 years ago) by root
Branch: MAIN
Changes since 1.4: +2 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 TODO: ffs/clz
2 64 bit variants of everything
3 TODO: examples from X for clz/ctz
4 TODO: arithmetic right shift
5 TODO: bit reversal
6 TODO: template/generic functions for x32/x64 and so on
7 TODO: #define ecb_integer_multiples_of(n,d) ((char (*)[d])(n) - (char (*)[d])0)
8 TODO: is_pot
9 TODO: uintptr_t
10 TODO: generalised shift
11 unsigned long gensh(unsigned long v, int x) {
12 int a, b;
13 a = (v << x) & -(((unsigned int)x) < 32);
14 x = -x;
15 b = (v >> x) & -(((unsigned int)x) < 32);
16 return a|b;
17 }