1 |
0x00010001 |
2 |
- add ecb_is_pot32/64. |
3 |
- add intptr_t/uintptr_t. |
4 |
- add ECB_PTRSIZE. |
5 |
- more macros for C/C++ version checks. |
6 |
- support C11 atomics for memory fences. |
7 |
- support gcc-4.7 atomics for memory fences. |
8 |
- support m68k, m88k and sh (patch by Miod Vallat). |
9 |
- add ecb_binary16_to_float. |
10 |
|
11 |
TODO: ecb_restrict_array etc. http://ue.tst.eu/5093eafd713ec5fda776d8065070aa4c.txt |
12 |
TODO: ffs/clz |
13 |
64 bit variants of everything |
14 |
TODO: examples from X for clz/ctz |
15 |
TODO: arithmetic right shift |
16 |
TODO: template/generic functions for x32/x64 and so on |
17 |
TODO: #define ecb_integer_multiples_of(n,d) ((char (*)[d])(n) - (char (*)[d])0) |
18 |
TODO: generalised shift |
19 |
TODO: #define ECB_FAST_UNALIGNED_ACCESS |
20 |
unsigned long gensh(unsigned long v, int x) { |
21 |
int a, b; |
22 |
a = (v << x) & -(((unsigned int)x) < 32); |
23 |
x = -x; |
24 |
b = (v >> x) & -(((unsigned int)x) < 32); |
25 |
return a|b; |
26 |
} |